]> git.baikalelectronics.ru Git - kernel.git/commit
blk-wbt: wake up all when we scale up, not down
authorJosef Bacik <josef@toxicpanda.com>
Thu, 11 Oct 2018 19:29:30 +0000 (15:29 -0400)
committerJens Axboe <axboe@kernel.dk>
Thu, 11 Oct 2018 19:31:28 +0000 (13:31 -0600)
commit1991e124a0d33392af5549d8492310289d04063e
tree764df94ac438da2b84ee0482c57879ea50dde81c
parent6ec49e922738b6ac5051a12b8c8384a878bd19b1
blk-wbt: wake up all when we scale up, not down

Tetsuo brought to my attention that I screwed up the scale_up/scale_down
helpers when I factored out the rq-qos code.  We need to wake up all the
waiters when we add slots for requests to make, not when we shrink the
slots.  Otherwise we'll end up things waiting forever.  This was a
mistake and simply puts everything back the way it was.

cc: stable@vger.kernel.org
Fixes: d3794638741b ("blk-rq-qos: refactor out common elements of blk-wbt")
eported-by: Tetsuo Handa <penguin-kernel@i-love.sakura.ne.jp>
Signed-off-by: Josef Bacik <josef@toxicpanda.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
block/blk-wbt.c