[SCSI] libiscsi: Do not fail commands immediately during logout
authorMike Christie <michaelc@cs.wisc.edu>
Thu, 13 Dec 2007 18:43:32 +0000 (12:43 -0600)
committerJames Bottomley <James.Bottomley@HansenPartnership.com>
Sat, 12 Jan 2008 00:28:38 +0000 (18:28 -0600)
commit9000bcd649b26aef4c35d2941f8a65f05bbb9ee1
tree083baa69d22c295dfbc76127604efcda0894d871
parentbca1088a8194f4fc850b65ea4f324c15d47d3cc3
[SCSI] libiscsi: Do not fail commands immediately during logout

If the target requests a logout, then we do not want
to fail commands to scsi-ml right away. This patch just
fails in pending commands for a requeue immediately, and then lets
iscsid handle running commands like normal recovery.

Signed-off-by: Mike Christie <michaelc@cs.wisc.edu>
Signed-off-by: James Bottomley <James.Bottomley@HansenPartnership.com>
drivers/scsi/libiscsi.c