[PATCH] device-mapper disk statistics: timing

Record I/O timing statistics

The start time is added to struct dm_io, an existing structure allocated
privately internally within dm and attached to each incoming bio.

We export disk_round_stats() from block/ll_rw_blk.c instead of creating a
private clone.

Signed-off-by: Jun'ichi "Nick" Nomura <[email protected]>
Signed-off-by: Alasdair G Kergon <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
This commit is contained in:
Jun'ichi "Nick" Nomura 2006-02-01 03:04:53 -08:00 • committed by Linus Torvalds
commit 3eaf840e0b
2 changed files with 35 additions and 2 deletions

View file

@ -2579,6 +2579,8 @@ void disk_round_stats(struct gendisk *disk)
disk->stamp = now;
}
EXPORT_SYMBOL_GPL(disk_round_stats);
/*
* queue lock must be held
*/