projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7930d0a
)
block: kyber: check if there are requests in ctx in kyber_has_work()
author
Ming Lei
<ming.lei@redhat.com>
Sat, 14 Oct 2017 09:22:28 +0000
(17:22 +0800)
committer
Jens Axboe
<axboe@kernel.dk>
Wed, 1 Nov 2017 14:20:02 +0000
(08:20 -0600)
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>
block/kyber-iosched.c
patch
|
blob
|
history
diff --git
a/block/kyber-iosched.c
b/block/kyber-iosched.c
index db5bfc6342d342f53d4ec2f6b26b9cc743fb75ef..b4df317c291692f01138b91608dc6c80f71bb9aa 100644
(file)
--- 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) \