Commit 2434af79 authored by Committed by Jens Axboe
blk-mq: Revert "blk-mq: reimplement blk_mq_hw_queue_mapped"
This reverts commit 127276c6. When all CPUs of one hw queue become offline, there still may have IOs not completed from this hctx. But blk_mq_hw_queue_mapped() is called in blk_mq_queue_tag_busy_iter(), which is used for iterating request in timeout handler, timeout event will be missed on the inactive hctx, then request may never be completed. Also the replementation of blk_mq_hw_queue_mapped() doesn't match the helper's name any more, and it should have been named as blk_mq_hw_queue_active(). Even other callers need further verification about this reimplemenation. So revert this patch now, and we can improve hw queue activate/inactivate event after adequent researching and test. Cc: Stefan Haberland <email@example.com> Cc: Christian Borntraeger <firstname.lastname@example.org> Cc: Christoph Hellwig <email@example.com> Reported-by: Jens Axboe <firstname.lastname@example.org> Fixes: 127276c6 ("blk-mq: reimplement blk_mq_hw_queue_mapped") Reviewed-by: Sagi Grimberg <email@example.com> Signed-off-by: Ming Lei <firstname.lastname@example.org> Signed-off-by: Jens Axboe <email@example.com>
Showing with 1 addition and 1 deletion