]> www.infradead.org Git - users/jedix/linux-maple.git/commit
target/user: Use sense_reason_t in tcmu_queue_cmd_ring
authorAndy Grover <agrover@redhat.com>
Thu, 6 Oct 2016 15:07:07 +0000 (10:07 -0500)
committerChuck Anderson <chuck.anderson@oracle.com>
Fri, 23 Jun 2017 04:10:49 +0000 (21:10 -0700)
commit2637f0610d5c76e1d6a9308fee0408c10a0b5a84
tree05b1611f05a33edd6cf3ac8b08f9c9f1b9112a36
parent5d8300dcb7f46672baaa59327707983b9a380a43
target/user: Use sense_reason_t in tcmu_queue_cmd_ring

Instead of using -ERROR-style returns, use sense_reason_t. This lets us
remove tcmu_pass_op(), and return more correct sense values.

Signed-off-by: Andy Grover <agrover@redhat.com>
Signed-off-by: Bryant G. Ly <bryantly@linux.vnet.ibm.com>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Mike Christie <mchristi@redhat.com>
Signed-off-by: Nicholas Bellinger <nab@linux-iscsi.org>
Orabug: 25395066
(cherry picked from commit 02eb924fabc5b699c0d9d354491e6f0767e3c139)
Signed-off-by: Kyle Fortin <kyle.fortin@oracle.com>
Reviewed-by: Shan Hai <shan.hai@oracle.com>
drivers/target/target_core_user.c