Re: Return of PENDING status to SCSI driver

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

 



On Tue, 2009-06-16 at 17:27 +0300, Boaz Harrosh wrote:
> scsi will call .queuecommand upto min(can_queue, .cmd_per_lun) times
> without any call to done(). Then for each done() called it will call
> .queuecommand again. (If more commands are pending)

Actually, there's one extra piece to this:  you have to return 0 from
your .queuecommand() routine to get the next command.

The helpful documentation for all of this is

Documentation/scsi/scsi_mid_low_api.txt

James


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

[Index of Archives]     [Linux Media]     [Linux Input]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [Old Linux USB Devel Archive]

  Powered by Linux