summaryrefslogtreecommitdiff
path: root/block/bio.c
diff options
context:
space:
mode:
authorJosef Bacik <jbacik@fb.com>2018-07-03 18:15:00 +0300
committerJens Axboe <axboe@kernel.dk>2018-07-09 18:07:54 +0300
commit67b42d0bf7a8fd1ec0cf1acdc9550e688d7c8578 (patch)
treef6aab5ca56ab6ba71846d93ff81afd0d34d3a3c1 /block/bio.c
parentc1c80384c8f47021a01a0cc42894a06bed2b801b (diff)
downloadlinux-67b42d0bf7a8fd1ec0cf1acdc9550e688d7c8578.tar.xz
rq-qos: introduce dio_bio callback
wbt cares only about request completion time, but controllers may need information that is on the bio itself, so add a done_bio callback for rq-qos so things like blk-iolatency can use it to have the bio when it completes. Signed-off-by: Josef Bacik <jbacik@fb.com> Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'block/bio.c')
-rw-r--r--block/bio.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/block/bio.c b/block/bio.c
index 5f84f5c3887b..f3536bfc8298 100644
--- a/block/bio.c
+++ b/block/bio.c
@@ -32,6 +32,7 @@
#include <trace/events/block.h>
#include "blk.h"
+#include "blk-rq-qos.h"
/*
* Test patch to inline a certain number of bi_io_vec's inside the bio
@@ -1808,6 +1809,9 @@ again:
if (!bio_integrity_endio(bio))
return;
+ if (bio->bi_disk)
+ rq_qos_done_bio(bio->bi_disk->queue, bio);
+
/*
* Need to have a real endio function for chained bios, otherwise
* various corner cases will break (like stacking block devices that