Re: Warning - running *really* short on DMA buffers while

Matthew Jacob (mjacob@feral.com)
Fri, 27 Sep 2002 14:18:12 -0700 (PDT)


>
> Linux is perfectly happy just to have you return 1 in queuecommand if the
> device won't accept the tag. The can_queue parameter represents the maximum
> number of outstanding commands the mid-layer will ever send. The mid-layer is
> happy to re-queue I/O below this limit if it cannot be accepted by the drive.
> In fact, that's more or less what queue plugging is about.
>
> The only problem occurs if you return 1 from queuecommand with no other
> outstanding I/O for the device.

Duh. There had been race conditions in the past which caused all of us
HBA writers to in fact start swalloing things like QFULL and maintaining
internal queues.

>
> There should be no reason in 2.5 for a driver to have to implement an internal
> queue.

That'd be swell.

-
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/