how to block in_atomic scsi requests for long time

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

 



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
--
To unsubscribe from this list: 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