summaryrefslogtreecommitdiffstats
path: root/block/kyber-iosched.c
diff options
context:
space:
mode:
authorMing Lei <ming.lei@redhat.com>2017-10-14 17:22:28 +0800
committerJens Axboe <axboe@kernel.dk>2017-11-01 08:20:02 -0600
commit63ba8e31c3ac6393b07c6e18538814a730478766 (patch)
tree025ca0284c444e650dfead54647fdab622bfce45 /block/kyber-iosched.c
parent7930d0a00ff5dbcc80f793d1a7a6b8de4e591f1a (diff)
downloadlinux-stable-63ba8e31c3ac6393b07c6e18538814a730478766.tar.gz
linux-stable-63ba8e31c3ac6393b07c6e18538814a730478766.tar.bz2
linux-stable-63ba8e31c3ac6393b07c6e18538814a730478766.zip
block: kyber: check if there are requests in ctx in kyber_has_work()
There may be request in sw queue, and not fetched to domain queue yet, so check it in kyber_has_work(). Signed-off-by: Ming Lei <ming.lei@redhat.com> Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'block/kyber-iosched.c')
-rw-r--r--block/kyber-iosched.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/block/kyber-iosched.c b/block/kyber-iosched.c
index db5bfc6342d3..b4df317c2916 100644
--- a/block/kyber-iosched.c
+++ b/block/kyber-iosched.c
@@ -649,7 +649,7 @@ static bool kyber_has_work(struct blk_mq_hw_ctx *hctx)
if (!list_empty_careful(&khd->rqs[i]))
return true;
}
- return false;
+ return sbitmap_any_bit_set(&hctx->ctx_map);
}
#define KYBER_LAT_SHOW_STORE(op) \