Skip to content

Commit

Permalink
block: remove BLK_EH_HANDLED
Browse files Browse the repository at this point in the history
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]>
  • Loading branch information
Christoph Hellwig authored and axboe committed May 29, 2018
1 parent adb2b76 commit f6e7d48
Show file tree
Hide file tree
Showing 4 changed files with 0 additions and 19 deletions.
11 changes: 0 additions & 11 deletions Documentation/scsi/scsi_eh.txt
Original file line number Diff line number Diff line change
Expand Up @@ -82,17 +82,6 @@ function
1. invokes optional hostt->eh_timed_out() callback. Return value can
be one of

- BLK_EH_HANDLED
This indicates that eh_timed_out() dealt with the timeout.
The command is passed back to the block layer and completed
via __blk_complete_requests().

*NOTE* After returning BLK_EH_HANDLED the SCSI layer is
assumed to be finished with the command, and no other
functions from the SCSI layer will be called. So this
should typically only be returned if the eh_timed_out()
handler raced with normal completion.

- BLK_EH_RESET_TIMER
This indicates that more time is required to finish the
command. Timer is restarted. This action is counted as a
Expand Down
4 changes: 0 additions & 4 deletions block/blk-mq.c
Original file line number Diff line number Diff line change
Expand Up @@ -777,10 +777,6 @@ static void blk_mq_rq_timed_out(struct request *req, bool reserved)
ret = ops->timeout(req, reserved);

switch (ret) {
case BLK_EH_HANDLED:
if (blk_mq_rq_state(req) == MQ_RQ_IN_FLIGHT)
__blk_mq_complete_request(req);
break;
case BLK_EH_RESET_TIMER:
blk_add_timer(req);
break;
Expand Down
3 changes: 0 additions & 3 deletions block/blk-timeout.c
Original file line number Diff line number Diff line change
Expand Up @@ -86,9 +86,6 @@ static void blk_rq_timed_out(struct request *req)
if (q->rq_timed_out_fn)
ret = q->rq_timed_out_fn(req);
switch (ret) {
case BLK_EH_HANDLED:
__blk_complete_request(req);
break;
case BLK_EH_RESET_TIMER:
blk_add_timer(req);
blk_clear_rq_complete(req);
Expand Down
1 change: 0 additions & 1 deletion include/linux/blkdev.h
Original file line number Diff line number Diff line change
Expand Up @@ -327,7 +327,6 @@ typedef void (exit_rq_fn)(struct request_queue *, struct request *);

enum blk_eh_timer_return {
BLK_EH_DONE,
BLK_EH_HANDLED,
BLK_EH_RESET_TIMER,
};

Expand Down

0 comments on commit f6e7d48

Please sign in to comment.