[<prev] [next>] [day] [month] [year] [list]
Message-ID: <4AB3A39E.9080908@ce.jp.nec.com>
Date: Sat, 19 Sep 2009 00:13:34 +0900
From: "Jun'ichi Nomura" <j-nomura@...jp.nec.com>
To: Jens Axboe <jens.axboe@...cle.com>,
Alasdair G Kergon <agk@...hat.com>,
Li Zefan <lizf@...fujitsu.com>
CC: linux-kernel@...r.kernel.org,
device-mapper development <dm-devel@...hat.com>,
j-nomura@...jp.nec.com
Subject: [PATCH 3/3] dm: Add a remapping trace to request-based dm
Add a remapping trace to request-based dm.
Signed-off-by: Kiyoshi Ueda <k-ueda@...jp.nec.com>
Signed-off-by: Jun'ichi Nomura <j-nomura@...jp.nec.com>
Cc: Jens Axboe <jens.axboe@...cle.com>
Cc: Alasdair G Kergon <agk@...hat.com>
Cc: Li Zefan <lizf@...fujitsu.com>
---
drivers/md/dm.c | 2 ++
1 file changed, 2 insertions(+)
Index: linux-2.6.31.work/drivers/md/dm.c
===================================================================
--- linux-2.6.31.work.orig/drivers/md/dm.c
+++ linux-2.6.31.work/drivers/md/dm.c
@@ -1503,6 +1503,8 @@ static void map_request(struct dm_target
break;
case DM_MAPIO_REMAPPED:
/* The target has remapped the I/O so dispatch it */
+ trace_block_rq_remap(clone->q, clone, disk_devt(dm_disk(md)),
+ blk_rq_pos(tio->orig));
dm_dispatch_request(clone);
break;
case DM_MAPIO_REQUEUE:
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists