Skip to content

Commit 1fc2b62

Browse files
Christoph Hellwigaxboe
authored andcommitted
scsi_transport_fc: complete requests from ->timeout
By completing the request entirely in the driver we can remove the BLK_EH_HANDLED return value and thus the split responsibility between the driver and the block layer that has been causing trouble. Signed-off-by: Christoph Hellwig <hch@lst.de> Reviewed-by: Hannes Reinecke <hare@suse.com> Reviewed-by: Johannes Thumshirn <jthumshirn@suse.de> Signed-off-by: Jens Axboe <axboe@kernel.dk>
1 parent 0df0bb0 commit 1fc2b62

1 file changed

Lines changed: 3 additions & 4 deletions

File tree

‎drivers/scsi/scsi_transport_fc.c‎

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3591,10 +3591,9 @@ fc_bsg_job_timeout(struct request *req)
35913591
}
35923592

35933593
/* the blk_end_sync_io() doesn't check the error */
3594-
if (!inflight)
3595-
return BLK_EH_DONE;
3596-
else
3597-
return BLK_EH_HANDLED;
3594+
if (inflight)
3595+
blk_mq_complete_request(req);
3596+
return BLK_EH_DONE;
35983597
}
35993598

36003599
/**

0 commit comments

Comments
 (0)