fc class: fail fast bsg requests
authorMike Christie <michaelc@cs.wisc.edu>
Thu, 5 Nov 2009 17:18:09 +0000 (11:18 -0600)
committerGreg Kroah-Hartman <gregkh@suse.de>
Mon, 26 Apr 2010 14:41:29 +0000 (07:41 -0700)
commit285f4f1123e1c977eb5dfa7704cc6356be079581
treeb43e81afb2f17ff471aa134c65d603ec4d1d7b56
parent56d704107153877ba124c9fafb31fb54a86a0f84
fc class: fail fast bsg requests

commit 2bc1c59dbdefdb6f9767e06efb86bbdb2923a8be upstream.

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>
Cc: maximilian attems <max@stro.at>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/scsi/scsi_transport_fc.c