diff options
author | Harshad Shirwadkar <harshadshirwadkar@gmail.com> | 2019-10-05 11:59:27 -0700 |
---|---|---|
committer | Jens Axboe <axboe@kernel.dk> | 2019-10-06 09:26:41 -0600 |
commit | b84477d3ebb96294f87dc3161e53fa8fe22d9bfd (patch) | |
tree | c69d5489e1f70ed4b22a7753ac61c26660b8454a /fs/pnode.c | |
parent | 0e48f51cbbfbdb79149806de14dcb8bf0f01ca94 (diff) |
blk-wbt: fix performance regression in wbt scale_up/scale_down
scale_up wakes up waiters after scaling up. But after scaling max, it
should not wake up more waiters as waiters will not have anything to
do. This patch fixes this by making scale_up (and also scale_down)
return when threshold is reached.
This bug causes increased fdatasync latency when fdatasync and dd
conv=sync are performed in parallel on 4.19 compared to 4.14. This
bug was introduced during refactoring of blk-wbt code.
Fixes: a79050434b45 ("blk-rq-qos: refactor out common elements of blk-wbt")
Cc: stable@vger.kernel.org
Cc: Josef Bacik <jbacik@fb.com>
Signed-off-by: Harshad Shirwadkar <harshadshirwadkar@gmail.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'fs/pnode.c')
0 files changed, 0 insertions, 0 deletions