[SCSI] libiscsi: don't let io sit in queue when session has failed
authorMike Christie <michaelc@cs.wisc.edu>
Wed, 13 May 2009 22:57:47 +0000 (17:57 -0500)
committerJames Bottomley <James.Bottomley@HansenPartnership.com>
Sat, 23 May 2009 20:44:12 +0000 (15:44 -0500)
commit301e0f7e4d78e956c58b66888e134dbdb44ea28e
tree89e346f0cc6613629a08ef0f9385071e3d56449f
parent3bbaaad95fd38dedb7c66a601f14825b4e0c5a59
[SCSI] libiscsi: don't let io sit in queue when session has failed

If the session is failed, but we have not yet fully transitioned
to the recovery stage we were still queueuing IO. The idea is
that for some failures we can recvover at the command level
and still continue to execute other IO. Well, we never have
added the recovery within a command code, so queueing up IO here
just creates the possibility that it might time time out so
this just has us requeue the IO the scsi layer for now.

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