mirror of
git://git.kernel.org/pub/scm/linux/kernel/git/xiang/erofs.git
synced 2026-11-05 09:05:53 +01:00
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 <[email protected]> Reviewed-by: Hannes Reinecke <[email protected]> Reviewed-by: Johannes Thumshirn <[email protected]> Signed-off-by: Jens Axboe <[email protected]>
This commit is contained in:
1 parent
0df0bb080a
commit
1fc2b62edb
1 file changed
+3
-4
@@ -3591,10 +3591,9 @@ fc_bsg_job_timeout(struct request *req)
|
||||
}
|
||||
|
||||
/* the blk_end_sync_io() doesn't check the error */
|
||||
if (!inflight)
|
||||
return BLK_EH_DONE;
|
||||
else
|
||||
return BLK_EH_HANDLED;
|
||||
if (inflight)
|
||||
blk_mq_complete_request(req);
|
||||
return BLK_EH_DONE;
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in new issue
Block a user