Re: [PATCH] Don't retry SG_IO (REQ_BLOCK_PC) commands.

James Bottomley
2003-11-21T14:13:50Z

On Fri, 2003-11-21 at 06:48, James Bottomley wrote:
> So the code to add the hints is in the works?

To be more specific:

I think we need to divide the error types up into

1. retryable
2. fatal

and to have at least two, possibly three sources

1. the transport
2. the device
(3. the driver)

so a medium error (say a read failure) is a fatal device error;
something like a no connect would be a fatal transport error, etc.

QUEUE_FULL is a retryable transport error under these terms, but we
might add a third category, flow control, to the error types which it
would more properly fall under.

the entity setting REQ_FASTFAIL should be able to indicate what type of
errors it is interested in (allowing others to be handled
automatically).

James