diff options
author | Stephen Bates <sbates@raithlin.com> | 2017-04-20 15:29:16 -0600 |
---|---|---|
committer | Jens Axboe <axboe@fb.com> | 2017-04-20 15:29:16 -0600 |
commit | a37244e4cc5766af68004ad6249fcd0e4694b441 (patch) | |
tree | 6c5cf6437a62483f2be5f5c924fbfecc7b6d3c3d /block/kyber-iosched.c | |
parent | caf7df12272118e0274c8353bcfeaf60c7743a47 (diff) | |
download | talos-obmc-linux-a37244e4cc5766af68004ad6249fcd0e4694b441.tar.gz talos-obmc-linux-a37244e4cc5766af68004ad6249fcd0e4694b441.zip |
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 <sbates@raithlin.com>
Fixed up Kyber scheduler stat callback.
Signed-off-by: Jens Axboe <axboe@fb.com>
Diffstat (limited to 'block/kyber-iosched.c')
-rw-r--r-- | block/kyber-iosched.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/block/kyber-iosched.c b/block/kyber-iosched.c index fe4af5b97c0e..3b0090bc5dd1 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; |