diff options
author | Alan D. Brunelle <Alan.Brunelle@hp.com> | 2007-08-07 15:30:23 +0200 |
---|---|---|
committer | Jens Axboe <jens.axboe@oracle.com> | 2007-08-11 22:34:48 +0200 |
commit | c7149d6bce2561aeaa48caaa1700aa8b3b22008f (patch) | |
tree | cfaeda02f5bb62ccf290369b5bd3a5d3f3801cf9 /block | |
parent | ec05b297f91a443aa26b74059b573bfad49c9ebb (diff) | |
download | linux-stable-c7149d6bce2561aeaa48caaa1700aa8b3b22008f.tar.gz linux-stable-c7149d6bce2561aeaa48caaa1700aa8b3b22008f.tar.bz2 linux-stable-c7149d6bce2561aeaa48caaa1700aa8b3b22008f.zip |
Fix remap handling by blktrace
This patch provides more information concerning REMAP operations on block
IOs. The additional information provides clearer details at the user level,
and supports post-processing analysis in btt.
o Adds in partition remaps on the same device.
o Fixed up the remap information in DM to be in the right order
o Sent up mapped-from and mapped-to device information
Signed-off-by: Alan D. Brunelle <alan.brunelle@hp.com>
Signed-off-by: Jens Axboe <jens.axboe@oracle.com>
Diffstat (limited to 'block')
-rw-r--r-- | block/ll_rw_blk.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/block/ll_rw_blk.c b/block/ll_rw_blk.c index 8c2caff87cc3..a15845c164f2 100644 --- a/block/ll_rw_blk.c +++ b/block/ll_rw_blk.c @@ -3047,6 +3047,10 @@ static inline void blk_partition_remap(struct bio *bio) bio->bi_sector += p->start_sect; bio->bi_bdev = bdev->bd_contains; + + blk_add_trace_remap(bdev_get_queue(bio->bi_bdev), bio, + bdev->bd_dev, bio->bi_sector, + bio->bi_sector - p->start_sect); } } |