On Tue, Feb 20, 2007 at 11:09:36PM +0300, Oleg Nesterov wrote: > > 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. > > mm/slab.c:cpuup_callback() The cancel_rearming_delayed_work, if used as it is in cpuup_callback, will require that we send DOWN_PREPARE before freeze_processes(). But ..I am wondering if we can avoid doing cancel_rearming_delayed_work (and thus flush_workqueue) in CPU_DOWN_PREPARE of slab.c. Basically, mm/slab.c: CPU_DOWN_PREPARE: /* All processes frozen now */ cancel_delayed_work(&per_cpu(reap_work, cpu).timer); del_work(&per_cpu(reap_work, cpu).work); break; At the point of CPU_DOWN_PREPARE, keventd should be frozen and hence del_work() is a matter of just deleting the work from cwq->worklist. -- 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) 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]>
- 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) 2/4] Revert changes to workqueue.c
- Prev by Date: Re: SATA problems
- Next by Date: 2.6.20-mm2 -- tifm/0/1919 is trying to release lock (&fm->lock) at: [<f90d392f>] tifm_7xx1_switch_media+0x2e9/0x326 [tifm_7xx1]
- 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):