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)
committerNicholas Bellinger <nab@linux-iscsi.org>
Thu, 20 Oct 2016 04:21:45 +0000 (21:21 -0700)
commit02eb924fabc5b699c0d9d354491e6f0767e3c139
tree1ddfba8937884a6da8fcefe5fb25ee3b27b1591b
parent1001354ca34179f3db924eb66672442a173147dc
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>
drivers/target/target_core_user.c