Re: [PATCH] ide-io.c, kernel 2.4.22 Fix for IO stats in/proc/partitions, was Re: sard/iostat disk I/O statistics/accounting for2.5.8-pre3

From: Stephen C. Tweedie
Date: Wed Sep 24 2003 - 09:16:01 EST


Hi,

On Wed, 2003-09-24, Chad Talbott wrote:


> Here's the one that I compiled and tested. It makes /proc/partitions
> report correctly.

Looks OK, but I'd defer to an IDE expert on the question of whether this
is the best fix or not.

Basically, you need to pair accounting start points with accounting end
points. This patch removes the end point from the IDE special-command
postprocessing, but only by manually replacing end_that_request_last()
with a variant which doesn't do accounting.

I'd really rather see a patch which accounted for the start of the
special command in the first place (via "req_new_io()" when the special
request is first queued), as I suspect that might be a more robust way
of doing things. But as I said, it would take somebody more familiar
with the IDE code to know whether that's really going to be better or
not.

Cheers,
Stephen

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/