]> git.baikalelectronics.ru Git - kernel.git/commit
ibmvscsis: Fix srp_transfer_data fail return code
authorBryant G. Ly <bgly@us.ibm.com>
Mon, 9 Jan 2017 16:21:20 +0000 (10:21 -0600)
committerBart Van Assche <bart.vanassche@sandisk.com>
Tue, 10 Jan 2017 17:32:14 +0000 (09:32 -0800)
commitd395fef28194304cd239a9a24241c8305a505a9f
tree366545a3f761df00cf51ccf893bf027f7d2f8bf6
parentc9a993918e71b2d090a26668d7eb5658117a6ef0
ibmvscsis: Fix srp_transfer_data fail return code

If srp_transfer_data fails within ibmvscsis_write_pending, then
the most likely scenario is that the client timed out the op and
removed the TCE mapping. Thus it will loop forever retrying the
op that is pretty much guaranteed to fail forever. A better return
code would be EIO instead of EAGAIN.

Cc: stable@vger.kernel.org
Reported-by: Steven Royer <seroyer@linux.vnet.ibm.com>
Tested-by: Steven Royer <seroyer@linux.vnet.ibm.com>
Signed-off-by: Bryant G. Ly <bgly@us.ibm.com>
Signed-off-by: Bart Van Assche <bart.vanassche@sandisk.com>
drivers/scsi/ibmvscsi_tgt/ibmvscsi_tgt.c