Skip to content

Commit

Permalink
blk-rq-qos: remove redundant finish_wait to rq_qos_wait.
Browse files Browse the repository at this point in the history
It is no need do finish_wait twice after acquiring inflight.

Signed-off-by: Guo Xuenan <[email protected]>
Signed-off-by: Jens Axboe <[email protected]>
  • Loading branch information
JonathanSmithGuo authored and axboe committed Jun 28, 2020
1 parent f3bdc62 commit 826f2f4
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions block/blk-rq-qos.c
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 826f2f4

Please sign in to comment.