summaryrefslogtreecommitdiff
path: root/drivers
diff options
context:
space:
mode:
authorJens Axboe <axboe@suse.de>2003-07-10 10:06:52 -0700
committerLinus Torvalds <torvalds@home.osdl.org>2003-07-10 10:06:52 -0700
commitb8ac7066011eb9fb1bea5bdcda1aedf3f90483da (patch)
tree1914b6967072c055e11efdd27b508d96a7507c63 /drivers
parent9cbdaa44a7aabf21d2c85e32f1f5f61829d8f857 (diff)
[PATCH] disk stats accounting fix
We should only account file system requests, ones originating from __make_request(). Otherwise it skews the counters and they go negative really fast.
Diffstat (limited to 'drivers')
-rw-r--r--drivers/block/ll_rw_blk.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/block/ll_rw_blk.c b/drivers/block/ll_rw_blk.c
index f03a77be82b6..29e94321f8ff 100644
--- a/drivers/block/ll_rw_blk.c
+++ b/drivers/block/ll_rw_blk.c
@@ -2354,7 +2354,7 @@ void end_that_request_last(struct request *req)
struct gendisk *disk = req->rq_disk;
struct completion *waiting = req->waiting;
- if (disk) {
+ if (disk && blk_fs_request(req)) {
unsigned long duration = jiffies - req->start_time;
switch (rq_data_dir(req)) {
case WRITE: