Re: [Suspend-devel] [linux-pm] [RFC][PATCH -mm 1/5] PM: Make freeze_processes SMP-safe

2006-12-02 Thread Alan Stern
into user mode? If not then there shouldn't be any problem. The routines I was talking about earlier hold the USB device locks while running in kernel mode, but they release them before returning to user mode. Alan Stern

Re: [Suspend-devel] [linux-pm] [RFC][PATCH -mm 1/5] PM: Make freeze_processes SMP-safe

2006-12-01 Thread Alan Stern
(). If they don't enter get_signal_to_deliver(), they can only be frozen where they explicitly call try_to_freeze(). What about the user threads? Alan Stern - Take Surveys. Earn Cash. Influence the Future of IT Join

Re: [Suspend-devel] [linux-pm] [RFC][PATCH -mm 1/5] PM: Make freeze_processes SMP-safe

2006-12-01 Thread Alan Stern
On Fri, 1 Dec 2006, Rafael J. Wysocki wrote: On Friday, 1 December 2006 15:56, Alan Stern wrote: On Thu, 30 Nov 2006, Rafael J. Wysocki wrote: Here's what I mean. usb-storage's kernel thread is unfreezable, because it might be needed for reading or writing a memory image to a swap

Re: [Suspend-devel] [linux-pm] [RFC][PATCH -mm 1/5] PM: Make freeze_processes SMP-safe

2006-12-01 Thread Alan Stern
work cut out trying to find all the places in the kernel where an unfreezable process takes a lock which might be held by a user process. For instance, I doubt that all the workqueue threads could pass this test. Alan Stern

Re: [Suspend-devel] [linux-pm] Dangers of touching disk between suspend and resume

2006-11-28 Thread Alan Stern
-- the only safe approach is to fix the computer and restart it. Alan Stern - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business