[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <20130313124624.1d51184d95d2c69c37daad0d@linux-foundation.org>
Date: Wed, 13 Mar 2013 12:46:24 -0700
From: Andrew Morton <akpm@...ux-foundation.org>
To: Stephen Rothwell <sfr@...b.auug.org.au>
Cc: linux-next@...r.kernel.org, linux-kernel@...r.kernel.org,
Tejun Heo <tj@...nel.org>
Subject: Re: linux-next: manual merge of the akpm tree with the workqueues
tree
On Wed, 13 Mar 2013 15:49:05 +1100 Stephen Rothwell <sfr@...b.auug.org.au> wrote:
> Today's linux-next merge of the akpm tree got a conflict in
> kernel/workqueue.c between commit fa1b54e69bc6 ("workqueue: update
> synchronization rules on worker_pool_idr") from the workqueues tree and
> commit "workqueue: convert to idr_alloc()" from the akpm tree.
>
> I fixed it up (I think - see below) and can carry the fix as necessary
> (no action is required).
>
OK, thanks. I have workqueue-convert-to-idr_alloc.patch queued for 3.9
so I moved it ahead of linux-next.patch and made a mess.
Tejun, can you please confirm that this is how worker_pool_assign_id()
should look in linux-next?
static int worker_pool_assign_id(struct worker_pool *pool)
{
int ret;
do {
idr_preload(GFP_KERNEL);
spin_lock_irq(&workqueue_lock);
ret = idr_alloc(&worker_pool_idr, pool, 0, 0, GFP_NOWAIT);
if (ret >= 0)
pool->id = ret;
spin_unlock_irq(&workqueue_lock);
} while (ret == -EAGAIN);
return ret < 0 ? ret : 0;
}
--
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