Skip to content

Commit e791ee6

Browse files
committed
Revert "blk-rq-qos: remove redundant finish_wait to rq_qos_wait."
This reverts commit 826f2f4. Qian Cai reports that this commit causes stalls with swap. Revert until the reason can be figured out. Reported-by: Qian Cai <cai@lca.pw> Signed-off-by: Jens Axboe <axboe@kernel.dk>
1 parent d0f0f1b commit e791ee6

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

‎block/blk-rq-qos.c‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -273,6 +273,8 @@ void rq_qos_wait(struct rq_wait *rqw, void *private_data,
273273
if (data.got_token)
274274
break;
275275
if (!has_sleeper && acquire_inflight_cb(rqw, private_data)) {
276+
finish_wait(&rqw->wait, &data.wq);
277+
276278
/*
277279
* We raced with wbt_wake_function() getting a token,
278280
* which means we now have two. Put our local token

0 commit comments

Comments
 (0)