]> git.baikalelectronics.ru Git - kernel.git/commit
[SCSI] fc class: fail fast bsg requests
authorMike Christie <michaelc@cs.wisc.edu>
Thu, 5 Nov 2009 17:18:09 +0000 (11:18 -0600)
committerJames Bottomley <James.Bottomley@suse.de>
Fri, 4 Dec 2009 18:01:32 +0000 (12:01 -0600)
commitc3a0b0baab6b14b4e6f5768d43c77216ec739f43
tree93354f4eccceb4f86eaa5ad50274ce3460ede74d
parentbb55c7a80af55a7049b99c0b23adec9de38999cd
[SCSI] fc class: fail fast bsg requests

If the port state is blocked and the fast io fail tmo has
fired then this patch will fail bsg requests immediately.
This is needed if userspace is sending IOs to test the transport
like with fcping, so it will not have to wait for the dev loss tmo.
With this patch he bsg req fast io fail code behaves like the normal
and sg io/passthrough fast io fail.

Signed-off-by: Mike Christie <michaelc@cs.wisc.edu>
Acked-By: James Smart <james.smart@emulex.com>
Signed-off-by: James Bottomley <James.Bottomley@suse.de>
drivers/scsi/scsi_transport_fc.c