Commit 3139853c authored by Jens Axboe's avatar Jens Axboe Committed by Linus Torvalds

[PATCH] fs accounting, part 2

The accounting works now, but I still think this last bit should be
added as well.  This makes absolutely sure we only account fs requests,
at both ends. Better safe than sorry.
parent 816931f9
......@@ -1546,7 +1546,7 @@ void drive_stat_acct(struct request *rq, int nr_sectors, int new_io)
{
int rw = rq_data_dir(rq);
if (!rq->rq_disk)
if (!blk_fs_request(rq) || !rq->rq_disk)
return;
if (rw == READ) {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment