[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20061222164243.GA86@tv-sign.ru>
Date: Fri, 22 Dec 2006 19:42:43 +0300
From: Oleg Nesterov <oleg@...sign.ru>
To: Andrew Morton <akpm@...l.org>
Cc: ego@...ibm.com, Mathieu Desnoyers <mathieu.desnoyers@...ymtl.ca>,
linux-kernel@...r.kernel.org, David Wilder <dwilder@...ibm.com>,
Tom Zanussi <zanussi@...ibm.com>,
Ingo Molnar <mingo@...hat.com>,
Greg Kroah-Hartman <gregkh@...e.de>,
Christoph Hellwig <hch@...radead.org>, ltt-dev@...fik.org,
systemtap@...rces.redhat.com,
Douglas Niehaus <niehaus@...s.ku.edu>,
"Martin J. Bligh" <mbligh@...igh.org>,
Thomas Gleixner <tglx@...utronix.de>, kiran@...lex86.org,
venkatesh.pallipadi@...el.com, dipankar@...ibm.com,
vatsa@...ibm.com, torvalds@...l.org, davej@...hat.com
Subject: Re: [PATCH] Relay CPU Hotplug support
On 12/22, Oleg Nesterov wrote:
>
> void flush_work(struct workqueue_struct *wq, struct work_struct *work)
> {
> struct cpu_workqueue_struct *cwq;
>
> cwq = get_wq_data(work);
> if (!cwq)
> return;
>
> spin_lock_irq(&cwq->lock);
> list_del_init(&work->entry);
> work_release(work);
> spin_unlock_irq(&cwq->lock);
Err, forgot to mention, this should be done under workqueue_mutex
or we should re-check cwq == get_wq_data(), I didn't decide yet.
Sorry for extra noise.
Oleg.
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists