Re: [Kiobuf-io-devel] RFC: Kernel mechanism: Compound event wait

Chaitanya Tumuluri (chait@getafix.engr.sgi.com)
Thu, 1 Feb 2001 11:30:35 -0500 (EST)


On Thu, 1 Feb 2001, Stephen C. Tweedie wrote:
> Hi,
>
> On Thu, Feb 01, 2001 at 10:25:22AM +0530, bsuparna@in.ibm.com wrote:
> >
> > Being able to track the children of a kiobuf would help with I/O
> > cancellation (e.g. to pull sub-ios off their request queues if I/O
> > cancellation for the parent kiobuf was issued). Not essential, I guess, in
> > general, but useful in some situations.
>
> What exactly is the justification for IO cancellation? It really
> upsets the normal flow of control through the IO stack to have
> voluntary cancellation semantics.
>
XFS does something called a "forced shutdown" of the filesystem in which
it requires outstanding I/Os issued against file data to be cancelled.
This is triggered by (among other things) errors in writing out file
metadata. I'm cc'ing Steve Lord so he can provide more information.

Of course, I was thinking along the lines of an API flushing the requests
out of the elevator at that time .... didn't get too far with it though.

Cheers,
-Chait.

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