Commit 826f2f48 authored by Guo Xuenan's avatar Guo Xuenan Committed by Jens Axboe

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: default avatarGuo Xuenan <guoxuenan@huawei.com>
Signed-off-by: default avatarJens Axboe <axboe@kernel.dk>
parent f3bdc62f
...@@ -273,8 +273,6 @@ void rq_qos_wait(struct rq_wait *rqw, void *private_data, ...@@ -273,8 +273,6 @@ void rq_qos_wait(struct rq_wait *rqw, void *private_data,
if (data.got_token) if (data.got_token)
break; break;
if (!has_sleeper && acquire_inflight_cb(rqw, private_data)) { if (!has_sleeper && acquire_inflight_cb(rqw, private_data)) {
finish_wait(&rqw->wait, &data.wq);
/* /*
* We raced with wbt_wake_function() getting a token, * We raced with wbt_wake_function() getting a token,
* which means we now have two. Put our local token * which means we now have two. Put our local token
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment