Skip to content

Commit 684b732

Browse files
Yufen Yuaxboe
authored andcommitted
blk-mq: use blk_mq_sched_mark_restart_hctx to set RESTART
Let blk_mq_mark_tag_wait() use the blk_mq_sched_mark_restart_hctx() to set BLK_MQ_S_SCHED_RESTART. Signed-off-by: Yufen Yu <yuyufen@huawei.com> Signed-off-by: Jens Axboe <axboe@kernel.dk>
1 parent 81b74ac commit 684b732

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

block/blk-mq.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1093,8 +1093,7 @@ static bool blk_mq_mark_tag_wait(struct blk_mq_hw_ctx *hctx,
10931093
bool ret;
10941094

10951095
if (!(hctx->flags & BLK_MQ_F_TAG_SHARED)) {
1096-
if (!test_bit(BLK_MQ_S_SCHED_RESTART, &hctx->state))
1097-
set_bit(BLK_MQ_S_SCHED_RESTART, &hctx->state);
1096+
blk_mq_sched_mark_restart_hctx(hctx);
10981097

10991098
/*
11001099
* It's possible that a tag was freed in the window between the

0 commit comments

Comments
 (0)