Seperate read and write statistics of in_flight requests
authorNikanth Karthikesan <knikanth@suse.de>
Fri, 11 Sep 2009 07:18:54 +0000 (09:18 +0200)
committerJens Axboe <jens.axboe@oracle.com>
Mon, 14 Sep 2009 06:24:52 +0000 (08:24 +0200)
commita9327cac440be4d8333bba975cbbf76045096275
tree83fd5dc45dc925c5b4eb0264c3add96cfaa4cae6
parent18d8217bc441630c3c5ec7416c5a65c69e8a0979
Seperate read and write statistics of in_flight requests

Currently, there is a single in_flight counter measuring the number of
requests in the request_queue. But some monitoring tools would like to
know how many read requests and write requests are in progress. Split the
current in_flight counter into two seperate counters for read and write.

This information is exported as a sysfs attribute, as changing the
currently available stat files would break the existing tools.

Signed-off-by: Nikanth Karthikesan <knikanth@suse.de>
Signed-off-by: Jens Axboe <jens.axboe@oracle.com>
block/blk-core.c
block/blk-merge.c
block/genhd.c
drivers/md/dm.c
fs/partitions/check.c
include/linux/genhd.h