Cc: Tejun Heo <htejun@...>, Mark Lord <liml@...>, Jeff Garzik <jeff@...>, IDE/ATA development list <linux-ide@...>, Allen Martin <AMartin@...>, Peer Chen <pchen@...>, linux-kernel <linux-kernel@...>, David Milburn <dmilburn@...>
That looks like a good fix then. (Though a possible optimization would
be to and the check_commands value with the notifier clear value rather
than testing against the notifier on each loop. That's fairly minor though.)
As I mentioned, this doesn't seem to resolve the problem we're seeing
with rapidly intermixed NCQ commands and cache flushes (at least, if I
take out the arbitrary 20usec delay from the driver and add this patch,
the problem still shows up). It could be a similar problem, though, of
commands being issued before the controller is really ready for them. If
you or others at NVIDIA could assist in tracking down that problem it
would be appreciated..
--