Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 230607
b: refs/heads/master
c: b7908c1
h: refs/heads/master
i:
  230605: c1b13cd
  230603: c2cd27a
  230599: 49b7620
  230591: da825cf
v: v3
  • Loading branch information
Jeff Moyer authored and Jens Axboe committed Jan 7, 2011
1 parent ba73882 commit 4772097
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 4 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 6c23a9681c0fe7fb7dd331b39dda11926f43746e
refs/heads/master: b7908c1035af7652cd613991b54dbff9c8b6bd3a
2 changes: 1 addition & 1 deletion trunk/drivers/md/dm.c
Original file line number Diff line number Diff line change
Expand Up @@ -630,7 +630,7 @@ static void dec_pending(struct dm_io *io, int error)
queue_io(md, bio);
} else {
/* done with normal IO or empty flush */
trace_block_bio_complete(md->queue, bio);
trace_block_bio_complete(md->queue, bio, io_error);
bio_endio(bio, io_error);
}
}
Expand Down
6 changes: 4 additions & 2 deletions trunk/include/trace/events/block.h
Original file line number Diff line number Diff line change
Expand Up @@ -206,15 +206,16 @@ TRACE_EVENT(block_bio_bounce,
* block_bio_complete - completed all work on the block operation
* @q: queue holding the block operation
* @bio: block operation completed
* @error: io error value
*
* This tracepoint indicates there is no further work to do on this
* block IO operation @bio.
*/
TRACE_EVENT(block_bio_complete,

TP_PROTO(struct request_queue *q, struct bio *bio),
TP_PROTO(struct request_queue *q, struct bio *bio, int error),

TP_ARGS(q, bio),
TP_ARGS(q, bio, error),

TP_STRUCT__entry(
__field( dev_t, dev )
Expand All @@ -228,6 +229,7 @@ TRACE_EVENT(block_bio_complete,
__entry->dev = bio->bi_bdev->bd_dev;
__entry->sector = bio->bi_sector;
__entry->nr_sector = bio->bi_size >> 9;
__entry->error = error;
blk_fill_rwbs(__entry->rwbs, bio->bi_rw, bio->bi_size);
),

Expand Down

0 comments on commit 4772097

Please sign in to comment.