[linux-pm] [PATCH] Block on access to temporarily unavailable pci device

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

 



On Wed, 18 Oct 2006, Matthew Wilcox wrote:

> On Wed, Oct 18, 2006 at 10:38:20AM -0400, Alan Stern wrote:
> > You have to do _something_, because a user task could be about to read the
> > configuration space at the exact moment you want to start the BIST.  That
> > means ipr would have to wait until the user access is finished, which
> > means it has to be prepared to sleep one way or another.
> 
> Actually, it only has to spin until the user has finished accessing
> config space.  See the patch I just posted.

I stand corrected.

Don't you want the user process to wait in TASK_INTERRUPTIBLE?  It would 
require only a very simple change.

Alan Stern



[Index of Archives]     [Linux ACPI]     [Netdev]     [Ethernet Bridging]     [Linux Wireless]     [CPU Freq]     [Kernel Newbies]     [Fedora Kernel]     [Security]     [Linux for Hams]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux Admin]     [Samba]

  Powered by Linux