diff options
author | Guo Xuenan <guoxuenan@huawei.com> | 2020-06-28 09:56:25 -0400 |
---|---|---|
committer | Jens Axboe <axboe@kernel.dk> | 2020-06-28 08:11:14 -0600 |
commit | 826f2f48da8c331ac51e1381998d318012d66550 (patch) | |
tree | a55119950647227755be2b1b8943c995167b4e08 /block | |
parent | f3bdc62fd82ed93dbe4d049eacba310de7eb2a6a (diff) | |
download | lwn-826f2f48da8c331ac51e1381998d318012d66550.tar.gz lwn-826f2f48da8c331ac51e1381998d318012d66550.zip |
blk-rq-qos: remove redundant finish_wait to rq_qos_wait.
It is no need do finish_wait twice after acquiring inflight.
Signed-off-by: Guo Xuenan <guoxuenan@huawei.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'block')
-rw-r--r-- | block/blk-rq-qos.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/block/blk-rq-qos.c b/block/blk-rq-qos.c index 656460636ad3..18f3eab9f768 100644 --- a/block/blk-rq-qos.c +++ b/block/blk-rq-qos.c @@ -273,8 +273,6 @@ void rq_qos_wait(struct rq_wait *rqw, void *private_data, if (data.got_token) break; if (!has_sleeper && acquire_inflight_cb(rqw, private_data)) { - finish_wait(&rqw->wait, &data.wq); - /* * We raced with wbt_wake_function() getting a token, * which means we now have two. Put our local token |