scsi: RDMA/srpt: Fix handling of command / TMF submission failure
authorBart Van Assche <bvanassche@acm.org>
Fri, 25 Jan 2019 18:34:48 +0000 (10:34 -0800)
committerMartin K. Petersen <martin.petersen@oracle.com>
Tue, 5 Feb 2019 02:29:45 +0000 (21:29 -0500)
commit8b8807b9e982e4ba05da8c0092f3c101daec5b2c
tree1860d87595a69ce01500b2832c0e8aff810bf3ef
parent94ebb47160085343ecaaeab90fa7ffbb86030613
scsi: RDMA/srpt: Fix handling of command / TMF submission failure

If submitting an SRP IU to the target core fails, send the SCSI response
"BUSY" to the initiator instead of not sending any response.

Reviewed-by: Hannes Reinecke <hare@suse.com>
Cc: Doug Ledford <dledford@redhat.com>
Cc: Jason Gunthorpe <jgg@ziepe.ca>
Cc: Nicholas Bellinger <nab@linux-iscsi.org>
Cc: Mike Christie <mchristi@redhat.com>
Cc: Christoph Hellwig <hch@lst.de>
Signed-off-by: Bart Van Assche <bvanassche@acm.org>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/infiniband/ulp/srpt/ib_srpt.c