]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commit
blk-wbt: fix has-sleeper queueing check
authorJens Axboe <axboe@kernel.dk>
Fri, 11 Jan 2019 11:07:00 +0000 (12:07 +0100)
committerKleber Sacilotto de Souza <kleber.souza@canonical.com>
Mon, 14 Jan 2019 09:28:55 +0000 (09:28 +0000)
commit41d2b76816cfb6e63a552856a1548b2f401d300e
treeeba8c85e6879485be3299f45dd7d0ffcdc74ab46
parent7e31a9ca5abf799a8a932ff68c70565d48632b1a
blk-wbt: fix has-sleeper queueing check

BugLink: https://bugs.launchpad.net/bugs/1810998
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>
(backported from commit c45e6a037a536530bd25781ac7c989e52deb2a63)
[mfo: backport:
 - hunk 1: s/rq_wait_inc_below(rqw/atomic_inc_below(&rqw->inflight/]
Signed-off-by: Mauricio Faria de Oliveira <mfo@canonical.com>
Acked-by: Stefan Bader <stefan.bader@canonical.com>
Acked-by: Kleber Sacilotto de Souza <kleber.souza@canonical.com>
Signed-off-by: Kleber Sacilotto de Souza <kleber.souza@canonical.com>
block/blk-wbt.c