diff options
author | Andrew Morton <akpm@linux-foundation.org> | 2013-01-24 13:14:50 +1100 |
---|---|---|
committer | Stephen Rothwell <sfr@canb.auug.org.au> | 2013-02-04 18:01:09 +1100 |
commit | 861abaeb3823c88be39a35f7382eeee9817840fb (patch) | |
tree | ae7965a16fc09cdb3f6698edac3ade181e10db44 /fs | |
parent | 59f828e93c1bf6837312cb679b5331ecce2e0c69 (diff) |
block-aio-batch-completion-for-bios-kiocbs-fix-fix-fix-fix-fix-fix
fix tracepoint in batch_complete()
Cc: Kent Overstreet <koverstreet@google.com>
Cc: Minchan Kim <minchan@kernel.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Diffstat (limited to 'fs')
-rw-r--r-- | fs/bio.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -1426,6 +1426,8 @@ void bio_endio_batch(struct bio *bio, int error, struct batch_complete *batch) if (error) bio->bi_error = error; + trace_block_bio_complete(bio, error); + if (batch) bio_list_add(&batch->bio, bio); else @@ -1441,8 +1443,6 @@ void batch_complete(struct batch_complete *batch) while ((bio = bio_list_pop(&batch->bio))) __bio_endio(bio, batch); - trace_block_bio_complete(bio, error); - batch_complete_aio(batch); } EXPORT_SYMBOL(batch_complete); |