login
Login
/
Register
Search
Search this site:
Forums
News
Blogs
Features
Site
Home
»
Mailing list archives
»
linux-kernel
»
2007
»
April
»
6
Re: [PATCH 1/8] Enhance process freezer interface for usage beyond software suspend
view
thread
Previous message: [
thread
] [
date
] [
author
]
Next message: [
thread
] [
date
] [
author
]
[view in full thread]
From: Nigel Cunningham
Subject:
Re: [PATCH 1/8] Enhance process freezer interface for usage beyond software suspend
Date: Friday, April 6, 2007 - 3:20 pm
Hi. On Fri, 2007-04-06 at 16:34 +0200, Rafael J. Wysocki wrote:
quoted text
> On Monday, 2 April 2007 22:51, Pavel Machek wrote: > > Hi! > > > > > > > +/* Per process freezer specific flags */ > > > > > +#define PF_FE_SUSPEND 0x00008000 /* This thread should not be frozen > > > > > + * for suspend > > > > > + */ > > > > > + > > > > > +#define PF_FE_KPROBES 0x00000010 /* This thread should not be frozen > > > > > + * for Kprobes > > > > > + */ > > > > > > > > Just put the comment before the define for long comments? > > > > > > Agreed. > > > > (Actually it would be nice to say > > > > /* This thread should not be frozen for suspend, becuase it is needed > > for getting image saved to disk */ > > > > > > > -#ifdef CONFIG_PM > > > > > +#if defined(CONFIG_PM) || defined(CONFIG_HOTPLUG_CPU) || \ > > > > > + defined(CONFIG_KPROBES) > > > > > > > > Should we create CONFIG_FREEZER? > > > > > > Why do you think so? I think the freezer should be compiled automatically > > > if any of the above is set, which is what this directive really means. > > > > Kconfig can do that. ("select statement"). If we have one such ifdef, > > it is okay, but if it would be more of them. > > > > > > Hmmm, I do not really like softlockup watchdog running during suspend. > > > > Can we make this freezeable and make watchdog shut itself off while > > > > suspending? > > > > > > Generally, I agree, but this patch only replaces the existing instances > > > of PF_NOFREEZE with the new mechanism. The changes you're talking about > > > require a separate patch series (or at least one separate patch), I think, and > > > they need not be so simple to make. > > > > Agreed about separate patch series. > > > > > > > - current->flags |= PF_NOFREEZE; > > > > > + freezer_exempt(FE_ALL); > > > > > pid = kernel_thread(do_linuxrc, "/linuxrc", SIGCHLD); > > > > > if (pid > 0) { > > > > > while (pid != sys_wait4(-1, NULL, 0, NULL)) > > > > > > > > Does this mean we have userland /linuxrc running with PF_NOFREEZE? > > > > That would be very bad... > > > > > > No, actually it is _required_ for the userland resume to work. Well, perhaps > > > I should place a comment in there so that I don't have to explain this again > > > and again. :-) > > > > Can you put big bold comment there? > > > > Why is it needed? Freezer never freezes _current_ task. > > No, it doesn't, but this task spawns linuxrc and then calls sys_wait4() in a > loop. > > Well, actually, I'll try to plant try_to_freeze() in this loop and see if that > works. If it doesn't, I'll add a comment.
It works. I've had: while (pid != sys_wait4(-1, NULL, 0, NULL)) { yield(); try_to_freeze(); } there for ages for Suspend2. Regards, Nigel -
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:
[RFC] Cpu-hotplug: Using the Process Freezer (try2)
, Gautham R Shenoy
, (Sun Apr 1, 10:34 pm)
[PATCH 1/8] Enhance process freezer interface for usage be ...
, Gautham R Shenoy
, (Sun Apr 1, 10:37 pm)
[PATCH 2/8] Make process freezer reentrant
, Gautham R Shenoy
, (Sun Apr 1, 10:37 pm)
[PATCH 3/8] Use process freezer for cpu-hotplug
, Gautham R Shenoy
, (Sun Apr 1, 10:38 pm)
[PATCH 4/8] Rip out lock_cpu_hotplug()
, Gautham R Shenoy
, (Sun Apr 1, 10:39 pm)
[PATCH 5/8] __cpu_up: use singlethreaded workqueue
, Gautham R Shenoy
, (Sun Apr 1, 10:40 pm)
[PATCH 6/8] Make non-singlethreaded workqueues freezeable ...
, Gautham R Shenoy
, (Sun Apr 1, 10:41 pm)
[PATCH 7/8] Clean up workqueue.c with respect to the freez ...
, Gautham R Shenoy
, (Sun Apr 1, 10:42 pm)
[PATCH 8/8] Make kernel threads freezeable for cpu-hotplug
, Gautham R Shenoy
, (Sun Apr 1, 10:42 pm)
Re: [RFC] Cpu-hotplug: Using the Process Freezer (try2)
, Ingo Molnar
, (Sun Apr 1, 11:16 pm)
Re: [RFC] Cpu-hotplug: Using the Process Freezer (try2)
, Srivatsa Vaddagiri
, (Mon Apr 2, 2:28 am)
Re: [RFC] Cpu-hotplug: Using the Process Freezer (try2)
, Ingo Molnar
, (Mon Apr 2, 4:18 am)
Re: [RFC] Cpu-hotplug: Using the Process Freezer (try2)
, Gautham R Shenoy
, (Mon Apr 2, 4:19 am)
Re: [RFC] Cpu-hotplug: Using the Process Freezer (try2)
, Ingo Molnar
, (Mon Apr 2, 4:27 am)
Re: [RFC] Cpu-hotplug: Using the Process Freezer (try2)
, Srivatsa Vaddagiri
, (Mon Apr 2, 5:42 am)
Re: [RFC] Cpu-hotplug: Using the Process Freezer (try2)
, Pavel Machek
, (Mon Apr 2, 6:22 am)
Re: [PATCH 1/8] Enhance process freezer interface for usag ...
, Pavel Machek
, (Mon Apr 2, 6:56 am)
Re: [RFC] Cpu-hotplug: Using the Process Freezer (try2)
, Gautham R Shenoy
, (Mon Apr 2, 7:16 am)
Re: [RFC] Cpu-hotplug: Using the Process Freezer (try2)
, Ingo Molnar
, (Mon Apr 2, 11:56 am)
Re: [PATCH 1/8] Enhance process freezer interface for usag ...
, Rafael J. Wysocki
, (Mon Apr 2, 1:48 pm)
Re: [PATCH 1/8] Enhance process freezer interface for usag ...
, Pavel Machek
, (Mon Apr 2, 1:51 pm)
Re: [RFC] Cpu-hotplug: Using the Process Freezer (try2)
, Rafael J. Wysocki
, (Mon Apr 2, 3:12 pm)
Re: [PATCH 1/8] Enhance process freezer interface for usag ...
, Gautham R Shenoy
, (Tue Apr 3, 12:59 am)
Re: [PATCH 7/8] Clean up workqueue.c with respect to the f ...
, Oleg Nesterov
, (Tue Apr 3, 4:47 am)
Re: [RFC] Cpu-hotplug: Using the Process Freezer (try2)
, Gautham R Shenoy
, (Tue Apr 3, 5:01 am)
Re: [RFC] Cpu-hotplug: Using the Process Freezer (try2)
, Srivatsa Vaddagiri
, (Tue Apr 3, 5:56 am)
Re: [PATCH 7/8] Clean up workqueue.c with respect to the f ...
, Srivatsa Vaddagiri
, (Tue Apr 3, 6:59 am)
Re: [RFC] Cpu-hotplug: Using the Process Freezer (try2)
, Gautham R Shenoy
, (Tue Apr 3, 7:01 am)
Re: [RFC] Cpu-hotplug: Using the Process Freezer (try2)
, Gautham R Shenoy
, (Tue Apr 3, 7:15 am)
Re: [PATCH 7/8] Clean up workqueue.c with respect to the f ...
, Oleg Nesterov
, (Tue Apr 3, 8:03 am)
Re: [PATCH 7/8] Clean up workqueue.c with respect to the f ...
, Srivatsa Vaddagiri
, (Tue Apr 3, 10:18 am)
Re: [RFC] Cpu-hotplug: Using the Process Freezer (try2)
, Rafael J. Wysocki
, (Tue Apr 3, 12:34 pm)
Re: [RFC] Cpu-hotplug: Using the Process Freezer (try2)
, Andrew Morton
, (Tue Apr 3, 1:24 pm)
Re: [RFC] Cpu-hotplug: Using the Process Freezer (try2)
, Srivatsa Vaddagiri
, (Tue Apr 3, 8:15 pm)
Re: [RFC] Cpu-hotplug: Using the Process Freezer (try2)
, Ingo Molnar
, (Wed Apr 4, 3:04 am)
Re: utrace merge
, Ingo Molnar
, (Wed Apr 4, 3:06 am)
Re: utrace merge
, Christoph Hellwig
, (Wed Apr 4, 3:36 am)
Re: [RFC] Cpu-hotplug: Using the Process Freezer (try2)
, Gautham R Shenoy
, (Wed Apr 4, 3:41 am)
Re: [RFC] Cpu-hotplug: Using the Process Freezer (try2)
, Ingo Molnar
, (Wed Apr 4, 4:49 am)
Re: [RFC] Cpu-hotplug: Using the Process Freezer (try2)
, Gautham R Shenoy
, (Wed Apr 4, 5:24 am)
Re: [PATCH 7/8] Clean up workqueue.c with respect to the f ...
, Oleg Nesterov
, (Wed Apr 4, 8:28 am)
Re: [PATCH 7/8] Clean up workqueue.c with respect to the f ...
, Srivatsa Vaddagiri
, (Wed Apr 4, 10:49 am)
Re: utrace merge
, Andrew Morton
, (Wed Apr 4, 11:41 am)
Re: [PATCH 1/8] Enhance process freezer interface for usag ...
, Oleg Nesterov
, (Thu Apr 5, 2:46 am)
Re: [PATCH 2/8] Make process freezer reentrant
, Oleg Nesterov
, (Thu Apr 5, 2:53 am)
Re: [PATCH 2/8] Make process freezer reentrant
, Gautham R Shenoy
, (Thu Apr 5, 3:19 am)
Re: [PATCH 3/8] Use process freezer for cpu-hotplug
, Oleg Nesterov
, (Thu Apr 5, 3:53 am)
Re: [PATCH 1/8] Enhance process freezer interface for usag ...
, Gautham R Shenoy
, (Thu Apr 5, 3:59 am)
Re: [PATCH 1/8] Enhance process freezer interface for usag ...
, Oleg Nesterov
, (Thu Apr 5, 4:30 am)
Re: [PATCH 6/8] Make non-singlethreaded workqueues freezea ...
, Oleg Nesterov
, (Thu Apr 5, 4:57 am)
Re: [PATCH 5/8] __cpu_up: use singlethreaded workqueue
, Oleg Nesterov
, (Thu Apr 5, 5:08 am)
Re: [PATCH 3/8] Use process freezer for cpu-hotplug
, Gautham R Shenoy
, (Thu Apr 5, 5:14 am)
Re: [PATCH 7/8] Clean up workqueue.c with respect to the f ...
, Oleg Nesterov
, (Thu Apr 5, 5:20 am)
Re: [PATCH 3/8] Use process freezer for cpu-hotplug
, Oleg Nesterov
, (Thu Apr 5, 6:34 am)
Re: [PATCH 6/8] Make non-singlethreaded workqueues freezea ...
, Andrew Morton
, (Thu Apr 5, 1:06 pm)
Re: [PATCH 1/8] Enhance process freezer interface for usag ...
, Rafael J. Wysocki
, (Fri Apr 6, 7:34 am)
Re: [PATCH 3/8] Use process freezer for cpu-hotplug
, Nathan Lynch
, (Fri Apr 6, 10:27 am)
Re: [PATCH 3/8] Use process freezer for cpu-hotplug
, Ingo Molnar
, (Fri Apr 6, 10:34 am)
Re: [PATCH 3/8] Use process freezer for cpu-hotplug
, Nathan Lynch
, (Fri Apr 6, 10:47 am)
Re: [PATCH 1/8] Enhance process freezer interface for usag ...
, Nigel Cunningham
, (Fri Apr 6, 3:20 pm)
Re: [PATCH 3/8] Use process freezer for cpu-hotplug
, Nigel Cunningham
, (Fri Apr 6, 3:22 pm)
Re: [PATCH 1/8] Enhance process freezer interface for usag ...
, Rafael J. Wysocki
, (Sat Apr 7, 2:33 am)
Re: [PATCH 1/8] Enhance process freezer interface for usag ...
, Nigel Cunningham
, (Sat Apr 7, 2:47 am)
Re: [PATCH 1/8] Enhance process freezer interface for usag ...
, Gautham R Shenoy
, (Sun Apr 8, 8:04 pm)
Re: [PATCH 7/8] Clean up workqueue.c with respect to the f ...
, Srivatsa Vaddagiri
, (Wed Apr 11, 7:22 pm)
Re: [PATCH 7/8] Clean up workqueue.c with respect to the f ...
, Gautham R Shenoy
, (Thu Apr 12, 3:01 am)
Re: [PATCH 7/8] Clean up workqueue.c with respect to the f ...
, Oleg Nesterov
, (Thu Apr 12, 9:00 am)
Re: [PATCH 7/8] Clean up workqueue.c with respect to the f ...
, Gautham R Shenoy
, (Fri Apr 13, 2:46 am)
Re: [PATCH 3/8] Use process freezer for cpu-hotplug
, Pavel Machek
, (Sat Apr 14, 11:48 am)
Navigation
Mailing list archives
Recent posts
Popular discussions
linux-kernel
:
Eric Sandeen
Re: [PATCH] xfs: do not pass unused params to xfs_flush_pages
Daniel Hazelton
Re: x86: 4kstacks default
Rusty Russell
Re: 2.6.22-rc3-mm1
Jeffrey V. Merkey
Re: Versioning file system
Matt Mackall
Re: [RFD] Documentation/HOWTO translated into Japanese
linux-netdev
:
gregkh
Patch "IPv6: keep route for tentative address" has been added to the 2.6.34-stable...
Patrick McHardy
Re: [rfc 02/13] [RFC 02/13] netfilter: nf_conntrack_sip: Add callid parser
Krzysztof Oledzki
Re: Error: an inet prefix is expected rather than "0/0".
Paul Gortmaker
[PATCH net-next 09/16] tipc: Relocate trivial link status functions to header file
webmaster Maintenance
联系系统管理员
git
:
Johannes Schindelin
[PATCH] fetch: refuse to fetch into the current branch in a non-bare repository
Junio C Hamano
Re: [PATCH] http-push: making HTTP push more robust and more user-friendly
Oliver Kullmann
Re: how to move with history?
Alex Riesen
Re: git exclude patterns for directory
Andreas Ericsson
Re: why not TortoiseGit
openbsd-misc
:
Damien Miller
Re: Patching a SSH 'Weakness'
Stuart Henderson
Re: Apache Seg Fault after upgrade to 4.6 stable
Úlfar M. E. Johnson
installing openbsd in xen
Brian
CARP multicast and ADSL bridge
Eric Furman
Re: Defending OpenBSD Performance
git-commits-head
:
Linux Kernel Mailing List
New device ID for sc92031 [1088:2031]
Linux Kernel Mailing List
drivers/acpi: use kasprintf
Linux Kernel Mailing List
Staging: et131x: prune all the debug code
Linux Kernel Mailing List
PCI: introduce pci_pcie_cap()
Linux Kernel Mailing List
USB: g_multi: Multifunction Composite Gadget added
Colocation donated by:
Syndicate