[SCSI] scsi_transport_fc: Make sure commands are completed when rport is offline
authorSarang Radke <sarang.radke@qlogic.com>
Wed, 10 Mar 2010 10:03:04 +0000 (04:03 -0600)
committerJames Bottomley <James.Bottomley@suse.de>
Sat, 27 Mar 2010 19:08:08 +0000 (15:08 -0400)
commitd88a714bfefa7aed7b9cb6c3721707fcd056b472
treeea791b7a50c10a035ec4819a4eb0b5977c107cc5
parent4ae0a6c15efcc37e94e3f30e3533bdec03c53126
[SCSI] scsi_transport_fc: Make sure commands are completed when rport is offline

blk_end_request doesn't complete a bidi request
successfully

The unfinished request eventually triggers a panic in
timeout handling routine fc_bsg_job_timeout as
req->special is NULL

Use blk_end_request_all to end the request unconditionally

Signed-off-by: Lalit Chandivade <lalit.chandivade@qlogic.com>
Acked-by: James Smart <james.smart@emulex.com>
Signed-off-by: James Bottomley <James.Bottomley@suse.de>
drivers/scsi/scsi_transport_fc.c