Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 1fc2b62e authored by Christoph Hellwig's avatar Christoph Hellwig Committed by Jens Axboe
Browse files

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: default avatarChristoph Hellwig <hch@lst.de>
Reviewed-by: default avatarHannes Reinecke <hare@suse.com>
Reviewed-by: default avatarJohannes Thumshirn <jthumshirn@suse.de>
Signed-off-by: default avatarJens Axboe <axboe@kernel.dk>
parent 0df0bb08
Loading
Loading
Loading
Loading
+3 −4
Original line number Diff line number Diff line
@@ -3591,10 +3591,9 @@ fc_bsg_job_timeout(struct request *req)
	}

	/* the blk_end_sync_io() doesn't check the error */
	if (!inflight)
	if (inflight)
		blk_mq_complete_request(req);
	return BLK_EH_DONE;
	else
		return BLK_EH_HANDLED;
}

/**