]> git.karo-electronics.de Git - linux-beck.git/commit
[SCSI] fc transport: pre-emptively terminate i/o upon dev_loss_tmo timeout
authorJames Smart <james.smart@emulex.com>
Fri, 5 Dec 2008 22:29:59 +0000 (16:29 -0600)
committerJames Bottomley <James.Bottomley@HansenPartnership.com>
Mon, 29 Dec 2008 17:24:33 +0000 (11:24 -0600)
commitf78badb1ae07e7f8b835ab2ea0b456ed3fc4caf4
treedff13a13fdfac127542803b7713ea7ebf1196e0f
parent73208dfd7ab19f379d73e8a0fbf30f92c203e5e8
[SCSI] fc transport: pre-emptively terminate i/o upon dev_loss_tmo timeout

Pre-emptively terminate i/o on the rport if dev_loss_tmo has fired.
The desire is to terminate everything, so that the i/o is cleaned up
prior to the sdev's being unblocked, thus any outstanding timeouts/aborts
are avoided.

Also, we do this early enough such that the rport's port_id field is
still valid. FCOE libFC code needs this info to find the i/o's to
terminate.

Signed-off-by: James Smart <james.smart@emulex.com>
[michaelc@cs.wisc.edu: remove extra scsi_target_unblock call]
Signed-off-by: Mike Christie <michaelc@cs.wisc.edu>
Signed-off-by: James Bottomley <James.Bottomley@HansenPartnership.com>
drivers/scsi/scsi_transport_fc.c