login
Login
/
Register
Search
Forums
News
Blogs
Features
Site
Home
»
Mailing list archives
»
linux-kernel
»
2008
»
January
»
7
Re: [linux-pm] Re: [PATCH] PM: Acquire device locks on suspend
view
thread
!MAILaRCHIVE_VOTE_RePLACE
Previous message: [
thread
] [
date
] [
author
]
Next message: [thread] [
date
] [
author
]
[view in full thread]
From:
Rafael J. Wysocki <rjw@...>
To: Johannes Berg <johannes@...>
Cc: Alan Stern <stern@...>, Greg KH <gregkh@...>, LKML <linux-kernel@...>, ACPI Devel Maling List <linux-acpi@...>, pm list <linux-pm@...>, Andrew Morton <akpm@...>, Ingo Molnar <mingo@...>
Subject:
Re: [linux-pm] Re: [PATCH] PM: Acquire device locks on suspend
Date: Sunday, January 6, 2008 - 8:49 pm
On Monday, 7 of January 2008, Rafael J. Wysocki wrote:
quoted text
> On Monday, 7 of January 2008, Johannes Berg wrote: > > Rafael J. Wysocki wrote: > > > > >> I don't see anything wrong with it. All that will happen is that the > > >> removal will start before the suspend and finish after the resume. > > > > > > In that case, we'll attempt to call the device's .suspend() and .resume() > > > routines, but we shouldn't do that, IMHO. > > > > I don't see anything wrong with that since the driver must be prepared to > > handle that even in the regular case, it's the only thing you can > > guarantee: no more method calls after removal finishes. Am I totally > > misunderstanding things? > > Well, we are towards the end of device removal at this point, having called > bus_remove_device(dev) for example, but still we've got it on dpm_active ... > > This may not be technically wrong (ie. we should be able to recover from > that), but it seems conceptually wrong and with pm_sleep_rwsem in place it > can be avoided.
No, it can't, without major complications. Well, I think I'll just send a patch that should work most of the time ... Rafael --
unsubscribe notice
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to
majordomo@vger.kernel.org
More majordomo info at
http://vger.kernel.org/majordomo-info.html
Please read the FAQ at
http://www.tux.org/lkml/
Previous message: [
thread
] [
date
] [
author
]
Next message: [thread] [
date
] [
author
]
Messages in current thread:
Re: [linux-pm] Re: [PATCH] PM: Acquire device locks on suspend
, Rafael J. Wysocki
, (Sun Jan 6, 7:59 pm)
Re: [linux-pm] Re: [PATCH] PM: Acquire device locks on suspend
, Rafael J. Wysocki
, (Sun Jan 6, 8:49 pm)
Navigation
Create content
Mailing list archives
Recent posts
Popular discussions
linux-kernel
:
FUJITA Tomonori
Re: Linux 2.6.25-rc4
Greg KH
[GIT PATCH] driver core patches against 2.6.24
Jan Engelhardt
intel iommu (Re: -mm merge plans for 2.6.23)
Artem Bityutskiy
[PATCH 11/44 take 2] [UBI] allocation unit header
git
:
linux-netdev
:
David Miller
[GIT]: Networking
Gerrit Renker
[PATCH 27/37] dccp: Integration of dynamic feature activation - part 2 (server side)
David Miller
Re: [PATCH] pkt_sched: Destroy gen estimators under rtnl_lock().
Natalie Protasevich
[BUG] New Kernel Bugs
openbsd-misc
:
Colocation donated by:
Who's online
There are currently
2 users
and
666 guests
online.
Online users
strcmp
protectedtrusty
Syndicate