Re: [PATCH] workqueue: UNBOUND -> REBIND morphing in rebind_workers() should be atomic

2012-09-04 Thread Tejun Heo
Hello, Lai. On Wed, Sep 05, 2012 at 09:05:37AM +0800, Lai Jiangshan wrote: > Thank you for accepting this one. Thanks a lot for bearing with me. I was at kernel summit / plumbers last week so my reviews were shaky. My apologies. > I'm waiting for your comments on the other patches. > I need to

Re: [PATCH] workqueue: UNBOUND -> REBIND morphing in rebind_workers() should be atomic

2012-09-04 Thread Lai Jiangshan
On 09/05/2012 07:39 AM, Tejun Heo wrote: >>From d2ae38fc5e37b4bca3c4bec04a10dcf861a77b2b Mon Sep 17 00:00:00 2001 > From: Lai Jiangshan > Date: Sun, 2 Sep 2012 00:28:19 +0800 > > The compiler may compile the following code into TWO write/modify > instructions. > > worker->flags &= ~WORKER_

[PATCH] workqueue: UNBOUND -> REBIND morphing in rebind_workers() should be atomic

2012-09-04 Thread Tejun Heo
>From d2ae38fc5e37b4bca3c4bec04a10dcf861a77b2b Mon Sep 17 00:00:00 2001 From: Lai Jiangshan Date: Sun, 2 Sep 2012 00:28:19 +0800 The compiler may compile the following code into TWO write/modify instructions. worker->flags &= ~WORKER_UNBOUND; worker->flags |= WORKER_REBIND; so t