blk-wbt: fix has-sleeper queueing check
authorJens Axboe <axboe@kernel.dk>
Mon, 20 Aug 2018 19:22:27 +0000 (13:22 -0600)
committerJens Axboe <axboe@kernel.dk>
Wed, 22 Aug 2018 21:07:32 +0000 (15:07 -0600)
commitc45e6a037a536530bd25781ac7c989e52deb2a63
tree0d81aff4f1352d26dbb143a60291817fc154fc24
parentb78820937b4762b7d30b807d7156bec1d89e4dd3
blk-wbt: fix has-sleeper queueing check

We need to do this inside the loop as well, or we can allow new
IO to supersede previous IO.

Tested-by: Anchal Agarwal <anchalag@amazon.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
block/blk-wbt.c