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

From: Daniel Phillips (phillips@bonn-fries.net)
Date: Wed Mar 06 2002 - 08:59:52 EST


On March 4, 2002 03:48 pm, James Bottomley wrote:
> phillips@bonn-fries.net said:
> > I've been following the thread, I hope I haven't missed anything
> > fundamental. A better long term solution is to have ordered tags work
> > as designed. It's not broken by design is it, just implementation?
>
> There is actually one hole in the design: A scsi device may accept a command
> with an ordered tag, disconnect and at a later time reconnect and return a
> QUEUE FULL status indicating that the tag must be retried. In the time
> between the disconnect and reconnect, the standard doesn't require that no
> other tags be accepted, so if the local flow control conditions abate, the
> device is allowed to accept and execute a tag sent down in between the
> disconnect and reconnect.

How can a drive can accept a command while it is disconnected from the bus.
Did you mean that after it reconnects it might refuse the ordered tag and
accept another? That would be a bug, I'd think.

> I think this would introduce a very minor deviation where one tag could
> overtake another, but we may still get a useable implementation even with this.

It would mean we would have to wait for completion of the tagged command
before submitting any more commands. Not nice, but not horribly costly
either.

-- 
Daniel
-
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 Mar 07 2002 - 21:00:54 EST