path: root/block/blk-core.c
diff options
authorHannes Reinecke <>2014-10-01 14:32:31 +0200
committerJens Axboe <>2014-10-01 08:17:42 -0600
commit4a0efdc933680d908de11712a774a2c9492c3d5a (patch)
treeabeb8de55841295acad03143bfff7e09709ff33c /block/blk-core.c
parentc611529e7cd3465ec0eada0f44200e8420c38908 (diff)
block: misplaced rq_complete tracepoint
The rq_complete tracepoint was never issued for empty requests, causing the resulting blktrace information to never show any completion for those request. Signed-off-by: Hannes Reinecke <> Acked-by: Tejun Heo <> Signed-off-by: Jens Axboe <>
Diffstat (limited to 'block/blk-core.c')
1 files changed, 2 insertions, 2 deletions
diff --git a/block/blk-core.c b/block/blk-core.c
index e1c2775c7597..4aa9ccd02a50 100644
--- a/block/blk-core.c
+++ b/block/blk-core.c
@@ -2400,11 +2400,11 @@ bool blk_update_request(struct request *req, int error, unsigned int nr_bytes)
int total_bytes;
+ trace_block_rq_complete(req->q, req, nr_bytes);
if (!req->bio)
return false;
- trace_block_rq_complete(req->q, req, nr_bytes);
* For fs requests, rq is just carrier of independent bio's
* and each partial completion should be handled separately.