Skip to contentSkip to conversation

Drivers: scsi

DISCUSSION K. Y. Srinivasan 2 participants 3 messages Oct 24, 2012 SCSI

lore
Share & tools
lore
#0 lore raw

When the low level driver returns SCSI_MLQUEUE_DEVICE_BUSY, how is the command retried; I suspect the retry is done after some delay. Is this delay programmable? If the device state changes,
can the low level driver notify upper layers that it can now handle the command that it had failed earlier with SCSI_MLQUEUE_DEVICE_BUSY.

Regards,

K. Y

maintainer
#1 lore raw
Quoted 2 lines · K. Y. Srinivasan

When the low level driver returns SCSI_MLQUEUE_DEVICE_BUSY, how is the command retried; I suspect the retry is done after some delay.

Delay depends mainly on I/O pressure and the unplug timer in the block layer.

Quoted 3 lines

Is this delay programmable? If the device state changes, can the low level driver notify upper layers that it can now handle the command that it had failed earlier with SCSI_MLQUEUE_DEVICE_BUSY.

In theory, you can call blk_run_queue() from the event handler that sees the device become ready. I don't think any driver actually does this, but I can't see it would cause any problem.

James

#2 lore raw
Quoted 18 lines

-----Original Message-----
From: James Bottomley [mailto:[email protected]]
Sent: Wednesday, October 24, 2012 6:25 PM
To: KY Srinivasan
Cc: [email protected]; [email protected]; [email protected]; [email protected]; [email protected]; linux- [email protected]
Subject: Re: Drivers: scsi

Quoted 2 lines · K. Y. Srinivasan

When the low level driver returns SCSI_MLQUEUE_DEVICE_BUSY, how is the command retried; I suspect the retry is done after some delay.

Delay depends mainly on I/O pressure and the unplug timer in the block layer.

Quoted 7 lines
Quoted 3 lines

Is this delay programmable? If the device state changes, can the low level driver notify upper layers that it can now handle the command that it had failed earlier with SCSI_MLQUEUE_DEVICE_BUSY.

In theory, you can call blk_run_queue() from the event handler that sees the device become ready. I don't think any driver actually does this, but I can't see it would cause any problem.

I will try this. Thanks for your prompt response.

Regards,

K. Y