From 826f2f48da8c331ac51e1381998d318012d66550 Mon Sep 17 00:00:00 2001 From: Guo Xuenan Date: Sun, 28 Jun 2020 09:56:25 -0400 Subject: [PATCH] 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 Signed-off-by: Jens Axboe --- block/blk-rq-qos.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/block/blk-rq-qos.c b/block/blk-rq-qos.c index 6564606..18f3eab 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 -- 2.7.4