Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

block: remove BLK_EH_HANDLED

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>

authored by

Christoph Hellwig and committed by
Jens Axboe
f6e7d48a adb2b769

-19
-11
Documentation/scsi/scsi_eh.txt
··· 82 82 1. invokes optional hostt->eh_timed_out() callback. Return value can 83 83 be one of 84 84 85 - - BLK_EH_HANDLED 86 - This indicates that eh_timed_out() dealt with the timeout. 87 - The command is passed back to the block layer and completed 88 - via __blk_complete_requests(). 89 - 90 - *NOTE* After returning BLK_EH_HANDLED the SCSI layer is 91 - assumed to be finished with the command, and no other 92 - functions from the SCSI layer will be called. So this 93 - should typically only be returned if the eh_timed_out() 94 - handler raced with normal completion. 95 - 96 85 - BLK_EH_RESET_TIMER 97 86 This indicates that more time is required to finish the 98 87 command. Timer is restarted. This action is counted as a
-4
block/blk-mq.c
··· 777 777 ret = ops->timeout(req, reserved); 778 778 779 779 switch (ret) { 780 - case BLK_EH_HANDLED: 781 - if (blk_mq_rq_state(req) == MQ_RQ_IN_FLIGHT) 782 - __blk_mq_complete_request(req); 783 - break; 784 780 case BLK_EH_RESET_TIMER: 785 781 blk_add_timer(req); 786 782 break;
-3
block/blk-timeout.c
··· 86 86 if (q->rq_timed_out_fn) 87 87 ret = q->rq_timed_out_fn(req); 88 88 switch (ret) { 89 - case BLK_EH_HANDLED: 90 - __blk_complete_request(req); 91 - break; 92 89 case BLK_EH_RESET_TIMER: 93 90 blk_add_timer(req); 94 91 blk_clear_rq_complete(req);
-1
include/linux/blkdev.h
··· 327 327 328 328 enum blk_eh_timer_return { 329 329 BLK_EH_DONE, 330 - BLK_EH_HANDLED, 331 330 BLK_EH_RESET_TIMER, 332 331 }; 333 332