diff options
author | Yufen Yu <yuyufen@huawei.com> | 2019-03-15 04:05:10 +0100 |
---|---|---|
committer | Jens Axboe <axboe@kernel.dk> | 2019-03-18 15:14:51 +0100 |
commit | 684b73245cd4d2608f4f2214f6bff02ba6ceca5f (patch) | |
tree | 7ddad4914e8711a358a9359bfd1d59113f0fdcd8 /block/blk-mq.c | |
parent | paride/pcd: cleanup queues when detection fails (diff) | |
download | linux-684b73245cd4d2608f4f2214f6bff02ba6ceca5f.tar.xz linux-684b73245cd4d2608f4f2214f6bff02ba6ceca5f.zip |
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>
Diffstat (limited to 'block/blk-mq.c')
-rw-r--r-- | block/blk-mq.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/block/blk-mq.c b/block/blk-mq.c index a9c181603cbd..ea01c23b58a3 100644 --- a/block/blk-mq.c +++ b/block/blk-mq.c @@ -1093,8 +1093,7 @@ static bool blk_mq_mark_tag_wait(struct blk_mq_hw_ctx *hctx, bool ret; if (!(hctx->flags & BLK_MQ_F_TAG_SHARED)) { - if (!test_bit(BLK_MQ_S_SCHED_RESTART, &hctx->state)) - set_bit(BLK_MQ_S_SCHED_RESTART, &hctx->state); + blk_mq_sched_mark_restart_hctx(hctx); /* * It's possible that a tag was freed in the window between the |