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: NSteven Royer <seroyer@linux.vnet.ibm.com> Tested-by: NSteven Royer <seroyer@linux.vnet.ibm.com> Signed-off-by: NBryant G. Ly <bgly@us.ibm.com> Signed-off-by: NBart Van Assche <bart.vanassche@sandisk.com>
Showing
想要评论请 注册 或 登录