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>hifive-unleashed-5.1
parent
81b74ac68c
commit
684b73245c
|
@ -1093,8 +1093,7 @@ static bool blk_mq_mark_tag_wait(struct blk_mq_hw_ctx *hctx,
|
||||||
bool ret;
|
bool ret;
|
||||||
|
|
||||||
if (!(hctx->flags & BLK_MQ_F_TAG_SHARED)) {
|
if (!(hctx->flags & BLK_MQ_F_TAG_SHARED)) {
|
||||||
if (!test_bit(BLK_MQ_S_SCHED_RESTART, &hctx->state))
|
blk_mq_sched_mark_restart_hctx(hctx);
|
||||||
set_bit(BLK_MQ_S_SCHED_RESTART, &hctx->state);
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* It's possible that a tag was freed in the window between the
|
* It's possible that a tag was freed in the window between the
|
||||||
|
|
Loading…
Reference in New Issue