public inbox for linux-scsi@vger.kernel.org
 help / color / mirror / Atom feed
* how to block in_atomic scsi requests for long time
@ 2009-05-19 12:04 saeed bishara
  2009-05-19 13:32 ` Matthew Wilcox
  0 siblings, 1 reply; 3+ messages in thread
From: saeed bishara @ 2009-05-19 12:04 UTC (permalink / raw)
  To: linux-scsi

Hi,
    I have a system with 4 disks that configured to enter standby
mode, the power supplier of this system can't drive concurrent
spin-ups of more than one disk, and it needs the spin-ups to be few
seconds far from each other.
    I've implemented this feature by adding a semaphore, and in the
scsi_dispatch_command, the process will wait for that semaphore if the
disk in standby mode and other disk in a middle of doing spinup. but
the problem is that sometimes that function is called while in atomic
context, and waiting to the semaphore is prohibeted.
    how do you guys suggest to block a request which comes in atomic mode?


saeed

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2009-05-19 14:59 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-05-19 12:04 how to block in_atomic scsi requests for long time saeed bishara
2009-05-19 13:32 ` Matthew Wilcox
2009-05-19 14:59   ` saeed bishara

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox