login
Header Space

 
 

Re: [linux-pm] [PATCH] Remove process freezer from suspend to RAM pathway

Score:
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: Matthew Garrett <mjg59@...>
Cc: <linux-kernel@...>, <linux-pm@...>
Date: Wednesday, July 4, 2007 - 10:38 am

On Tue, 3 Jul 2007, Matthew Garrett wrote:


(1) The driver will undoubtedly hold some mutex or semaphore at the 
time it checks whether a system sleep is underway.  You will have to 
drop it before blocking and then reacquire it afterward.

(2) The driver may have been called by some other routine which holds a 
mutex needed for resuming the device.  In this case the driver _can't_ 
drop the mutex and so the resume will deadlock.


Okay, I agree that (1) can be handled without too much effort.  But 
doing it adds an extra test to _every_ driver's I/O pathway.  Freezing 
userspace does not incur all this additional overhead.

(2) shouldn't arise during normal read and write operations, but it
certainly _will_ arise during probe.

Alan Stern

-
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
Re: [linux-pm] [PATCH] Remove process freezer from suspend t..., Alan Stern, (Wed Jul 4, 10:38 am)
Re: [linux-pm] [PATCH] Remove process freezer from suspend t..., Rafael J. Wysocki, (Wed Jul 4, 10:40 am)
Re: [linux-pm] [PATCH] Remove process freezer from suspend t..., Jeremy Fitzhardinge, (Thu Jul 5, 12:10 pm)
Re: [linux-pm] [PATCH] Remove process freezer from suspend t..., Rafael J. Wysocki, (Wed Jul 4, 10:41 am)
Re: [linux-pm] [PATCH] Remove process freezer from suspend t..., Rafael J. Wysocki, (Wed Jul 4, 11:17 am)
speck-geostationary