path: root/block/kyber-iosched.c
diff options
authorStephen Bates <>2017-04-20 15:29:16 -0600
committerJens Axboe <>2017-04-20 15:29:16 -0600
commita37244e4cc5766af68004ad6249fcd0e4694b441 (patch)
tree6c5cf6437a62483f2be5f5c924fbfecc7b6d3c3d /block/kyber-iosched.c
parentcaf7df12272118e0274c8353bcfeaf60c7743a47 (diff)
blk-stat: convert blk-stat bucket callback to signed
In order to allow for filtering of IO based on some other properties of the request than direction we allow the bucket function to return an int. If the bucket callback returns a negative do no count it in the stats accumulation. Signed-off-by: Stephen Bates <> Fixed up Kyber scheduler stat callback. Signed-off-by: Jens Axboe <>
Diffstat (limited to 'block/kyber-iosched.c')
1 files changed, 1 insertions, 1 deletions
diff --git a/block/kyber-iosched.c b/block/kyber-iosched.c
index fe4af5b..3b0090b 100644
--- a/block/kyber-iosched.c
+++ b/block/kyber-iosched.c
@@ -102,7 +102,7 @@ struct kyber_hctx_data {
atomic_t wait_index[KYBER_NUM_DOMAINS];
-static unsigned int rq_sched_domain(const struct request *rq)
+static int rq_sched_domain(const struct request *rq)
unsigned int op = rq->cmd_flags;