login
Login
/
Register
Search
Search this site:
Forums
News
Blogs
Features
Site
Home
»
Mailing list archives
»
linux-kernel
»
2010
»
April
»
23
Re: [linux-pm] Is it supposed to be ok to call del_gendisk while userspace is frozen?
view
thread
Previous message: [
thread
] [
date
] [
author
]
Next message: [
thread
] [
date
] [
author
]
[view in full thread]
From: Rafael J. Wysocki
Subject:
Re: [linux-pm] Is it supposed to be ok to call del_gendisk while userspace is frozen?
Date: Thursday, April 22, 2010 - 10:17 pm
On Friday 23 April 2010, Matt Reimer wrote:
quoted text
> On Thu, Mar 4, 2010 at 1:15 PM, Pavel Machek <pavel@ucw.cz> wrote: > > Hi! > > > >> > My thought exactly. This is the only approach that also solves the > >> > following race: > >> > > >> > A driver is unloaded at the same time as a suspend starts. > >> > > >> > The writeback thread gets frozen. > >> > > >> > Then before the rmmod thread is frozen, it calls del_gendisk. > >> > > >> > Delaying things by means of a workqueue (or the equivalent) might also > >> > work, but it doesn't seem as safe. For example, some important > >> > writebacks might end up getting delayed until too late. > > > > Delaying writebacks during sleep should be ok... That's why we do > > sync() after userspace is frozen -- nothing really important should be > > waiting for writeback after that point. > > Has this been fixed,
No, it hasn't.
quoted text
> or has a consensus about how to fix this been > achieved? I'm hitting the same problem and have some time to work on a > fix.
Generally, it looks like del_gendisk should thaw writeback threads, but not during suspend, only during resume. 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] Is it supposed to be ok to call del_gendisk ...
, Alan Stern
, (Wed Mar 3, 7:48 pm)
Re: [linux-pm] Is it supposed to be ok to call del_gendisk ...
, Rafael J. Wysocki
, (Thu Mar 4, 12:26 pm)
Re: [linux-pm] Is it supposed to be ok to call del_gendisk ...
, Pavel Machek
, (Thu Mar 4, 1:15 pm)
Re: [linux-pm] Is it supposed to be ok to call del_gendisk ...
, Matt Reimer
, (Thu Apr 22, 4:40 pm)
Re: [linux-pm] Is it supposed to be ok to call del_gendisk ...
, Rafael J. Wysocki
, (Thu Apr 22, 10:17 pm)
Re: [linux-pm] Is it supposed to be ok to call del_gendisk ...
, Matt Reimer
, (Tue May 11, 4:55 pm)
Navigation
Create content
Mailing list archives
Recent posts
Popular discussions
linux-kernel
:
Greg Kroah-Hartman
[PATCH 20/36] Driver core: Call device_pm_add() after bus_add_device() in device_a...
Oleg Nesterov
Re: init's children list is long and slows reaping children.
kogiidena
[PATCH 1/1] leds: LED Bitpattern Trigger
Stefan Richter
Re: [patch 00/04] RFC: Staging tree (drivers/staging)
David Miller
Re: [Ksummit-2008-discuss] Fixing the Kernel Janitors project
git
:
Stephen R. van den Berg
Re: [RFC] origin link for cherry-pick and revert
Christian Stimming
git-gui: Fix broken revert confirmation.
Junio C Hamano
Re: git-svnimport
Anuj Gakhar
Git Architecture Question
Johannes Schindelin
Re: [PATCH] Fix approxidate("never") to always return 0
linux-netdev
:
Gerrit Renker
v2 [PATCH 1/4] dccp: Limit feature negotiation to connection setup phase
Daniel Lezcano
getsockopt(TCP_DEFER_ACCEPT) value change
David Miller
Re: 2.6.27.18: bnx2/tg3: BUG: "scheduling while atomic" trying to ifenslave a seco...
Ingo Molnar
Re: [regression] nf_iterate(), BUG: unable to handle kernel NULL pointer dereference
Gerrit Renker
[PATCH 37/37] dccp: Debugging functions for feature negotiation
git-commits-head
:
Linux Kernel Mailing List
ath9k_htc: Allocate URBs properly
Linux Kernel Mailing List
[ARM] dma: use new dmabounce_sync_for_xxx() for dma_sync_single_xxx()
Linux Kernel Mailing List
MIPS: Cavium: Remove unused watchdog code.
Linux Kernel Mailing List
V4L/DVB (8976): af9015: Add USB ID for AVerMedia A309
Linux Kernel Mailing List
ARM: 5670/1: bcmring: add default configuration for bcmring arch
openbsd-misc
:
Christophe Rioux
Implementation example of snmp
Ryan McBride
Re: Packets Per Second Limit?
Nick Holland
Re: booting openbsd on eee without cd-rom
Bryan Irvine
Re: OpenBSD 4.7 Released, May 19 2010
Jacob Yocom-Piatt
Re: Same shit all over again
Colocation donated by:
Syndicate