On Sun, Feb 18, 2007 at 12:59:28AM +0300, Oleg Nesterov wrote: > Before you begin. You are doing CPU_DOWN_PREPARE after freeze_processes(). > Not good. This makes impossible to do flush_workueue() at CPU_DOWN_PREPARE > stage, we have callers. We have few solutions to deal with this: a. Mark such workqueues not freezable for hotplug b. If above is not possible, don't call flush_workqueue in DOWN_PREPARE c. If above is not possible, send DOWN_PREPARE before freeze_processes() I would prefer a solution in the above order listed. Which caller are you referring to here? Maybe we can decide on the option after we see the users of flush_workqueue() in DOWN_PREPARE. > I'm afraid it won't be so easy to solve all locking/racing problems. Will > wait for the patch :) I dont see problems for workqueue.c even if we follow option c. Do you see any? -- Regards, vatsa - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
- Follow-Ups:
- Re: [RFC PATCH(Experimental) 2/4] Revert changes to workqueue.c
- From: Oleg Nesterov <[email protected]>
- Re: [RFC PATCH(Experimental) 2/4] Revert changes to workqueue.c
- References:
- [RFC PATCH(Experimental) 0/4] Freezer based Cpu-hotplug
- From: Gautham R Shenoy <[email protected]>
- [RFC PATCH(Experimental) 1/4] freezer-cpu-hotplug core
- From: Gautham R Shenoy <[email protected]>
- [RFC PATCH(Experimental) 2/4] Revert changes to workqueue.c
- From: Gautham R Shenoy <[email protected]>
- Re: [RFC PATCH(Experimental) 2/4] Revert changes to workqueue.c
- From: Oleg Nesterov <[email protected]>
- Re: [RFC PATCH(Experimental) 2/4] Revert changes to workqueue.c
- From: Srivatsa Vaddagiri <[email protected]>
- Re: [RFC PATCH(Experimental) 2/4] Revert changes to workqueue.c
- From: Oleg Nesterov <[email protected]>
- Re: [RFC PATCH(Experimental) 2/4] Revert changes to workqueue.c
- From: Srivatsa Vaddagiri <[email protected]>
- Re: [RFC PATCH(Experimental) 2/4] Revert changes to workqueue.c
- From: Oleg Nesterov <[email protected]>
- Re: [RFC PATCH(Experimental) 2/4] Revert changes to workqueue.c
- From: Srivatsa Vaddagiri <[email protected]>
- Re: [RFC PATCH(Experimental) 2/4] Revert changes to workqueue.c
- From: Oleg Nesterov <[email protected]>
- [RFC PATCH(Experimental) 0/4] Freezer based Cpu-hotplug
- Prev by Date: Re: [lm-sensors] Could the k8temp driver be interfering with ACPI?
- Next by Date: Re: [patch] perfmon ia64: fix file/vma lifetime
- Previous by thread: Re: [RFC PATCH(Experimental) 2/4] Revert changes to workqueue.c
- Next by thread: Re: [RFC PATCH(Experimental) 2/4] Revert changes to workqueue.c
- Index(es):