]> git.baikalelectronics.ru Git - kernel.git/commit
scsi: ibmvscsis: Fix write_pending failure path
authorBryant G. Ly <bgly@us.ibm.com>
Mon, 2 Oct 2017 17:59:38 +0000 (12:59 -0500)
committerMartin K. Petersen <martin.petersen@oracle.com>
Tue, 3 Oct 2017 02:49:27 +0000 (22:49 -0400)
commit253db435a020ba0f74c1a5940293b853d142efd0
treee0d160162aa1b2d916e9047311871d96d350c70f
parent56bb27b3f7cb2bccaee40abb0f4cf3823f45d4f8
scsi: ibmvscsis: Fix write_pending failure path

For write_pending if the queue is down or client failed then return -EIO
so that LIO can properly process the completed command. Prior we
returned 0 since LIO could not handle it properly. Now with commit
07e29536c5cf ("target: Fix unknown fabric callback queue-full errors")
that patch addresses LIO's ability to handle things right.

Signed-off-by: Bryant G. Ly <bgly@us.ibm.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/scsi/ibmvscsi_tgt/ibmvscsi_tgt.c