[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>
This commit is contained in:
Родитель
97ee20886c
Коммит
2bc1c59dbd
|
@ -3809,8 +3809,9 @@ fc_bsg_request_handler(struct request_queue *q, struct Scsi_Host *shost,
|
||||||
return;
|
return;
|
||||||
|
|
||||||
while (!blk_queue_plugged(q)) {
|
while (!blk_queue_plugged(q)) {
|
||||||
if (rport && (rport->port_state == FC_PORTSTATE_BLOCKED))
|
if (rport && (rport->port_state == FC_PORTSTATE_BLOCKED) &&
|
||||||
break;
|
!(rport->flags & FC_RPORT_FAST_FAIL_TIMEDOUT))
|
||||||
|
break;
|
||||||
|
|
||||||
req = blk_fetch_request(q);
|
req = blk_fetch_request(q);
|
||||||
if (!req)
|
if (!req)
|
||||||
|
|
Загрузка…
Ссылка в новой задаче