Re: SCSI commands order when using scsi_do_req

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Thu, 2005-06-02 at 20:31 +0300, Liran Schour wrote:
> I am developing a new SCSI upper layer driver. (Object based SCSI device)
> I noticed that scsi_do_req execute commands in LIFO order (add new commands
> to the head of the Q).
> This behavior can cause a starvation of commands (or at least long delays).
> What is the proper solution to this?

Well, to use the proper interfaces.

scsi_do_req is deprecated, so don't use it.  scsi_wait_req is its
replacement.  Note: they're only really intended to allow ULDs to
execute commands that are necessary for controlling the device (that's
why they go at the head of the queue).  Block commands are executed in
order using ULD init_command() (or REQ_BLOCK_PC).

James


-
: send the line "unsubscribe linux-scsi" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [SCSI Target Devel]     [Linux SCSI Target Infrastructure]     [Kernel Newbies]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Linux IIO]     [Samba]     [Device Mapper]
  Powered by Linux