Re: [PATCH] 2.4.x write barriers (updated for ext3)

From: Helge Hafting (helgehaf@aitel.hist.no)
Date: Mon Feb 25 2002 - 05:57:35 EST


James Bottomley wrote:
[...]
> Unfortunately, there's actually a hole in the SCSI spec that means ordered
> tags are actually extremely difficult to use in the way you want (although I
> think this is an accident, conceptually, I think they were supposed to be used
> for this). For the interested, I attach the details at the bottom.
>
[...]
> The SCSI tag system allows all devices to have a dynamic queue. This means
> that there is no a priori guarantee about how many tags the device will accept
> before the queue becomes full.
>

I just wonder - isn't the amount of outstanding requests a device
can handle constant? If so, the user could determine this (from spec or
by running an utility that generates "too much" traffic.)

The max number of requests may then be compiled in or added as
a kernel boot parameter. The kernel would honor this and never ever
have more outstanding requests than it believes the device
can handle.

Those who don't want to bother can use some low default or accept the
risk.

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



This archive was generated by hypermail 2b29 : Thu Feb 28 2002 - 21:00:13 EST