[SCSI] libiscsi: handle immediate command rejections
authorMike Christie <michaelc@cs.wisc.edu>
Thu, 20 Aug 2009 20:10:59 +0000 (15:10 -0500)
committerJames Bottomley <James.Bottomley@suse.de>
Sat, 5 Sep 2009 14:42:42 +0000 (09:42 -0500)
commit8afa1439fcff58da8f28c1d083046f229f6ab3de
treeef09869134e5aadbc883762b4b1668619229463a
parentd3305f3407fa3e9452079ec6cc8379067456e4aa
[SCSI] libiscsi: handle immediate command rejections

If we sent multiple pdus as immediate the target could be
rejecting some and we have just been dropping the rejection
notification. This adds code to handle nop-out rejections,
so if a nop-out was sent as a ping and rejected we do not
mark the connection bad. Instead we just clean up the timers
since we have pdu making a rount trip we know the connection
is good.

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