scsi: RDMA/srpt: Fix handling of TMF submission failure
authorBart Van Assche <bvanassche@acm.org>
Fri, 25 Jan 2019 18:34:49 +0000 (10:34 -0800)
committerMartin K. Petersen <martin.petersen@oracle.com>
Tue, 5 Feb 2019 02:30:37 +0000 (21:30 -0500)
commit337ec69ed761ae02a5d1226d607c487fedbd8dd7
tree91967e86515639920a2711ca1178b53cdd57e0fc
parent8b8807b9e982e4ba05da8c0092f3c101daec5b2c
scsi: RDMA/srpt: Fix handling of TMF submission failure

If submitting a TMF to the target core fails, send the "FUNCTION REJECTED"
response to the initiator.

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