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

Matthew Jacob
2002-09-27T21:13:07Z

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