Messages in this thread | | | Date | Wed, 19 Sep 2012 10:42:13 -0700 | From | Tejun Heo <> | Subject | Re: [PATCH 2/2] workqueue: Keep activate-order equals to queue_work()-order |
| |
Hello, Lai.
On Wed, Sep 19, 2012 at 06:13:24PM +0800, Lai Jiangshan wrote: > From 314d43f087c85b11a29be0555f32deeb742bf18e Mon Sep 17 00:00:00 2001 > From: Lai Jiangshan <laijs@cn.fujitsu.com> > Date: Tue, 18 Sep 2012 16:26:30 +0800 > Subject: [PATCH] workqueue: use common cwq_set_max_active() for > workqueue_set_max_active() > > workqueue_set_max_active() may increase ->max_active without activating > delayed works. And it may cause the activation order doesn't equal to > to queue_work()-order. > > To make things consist, we use common cwq_set_max_active() logic which > immediately makes use of the newly increased max_mactive if there are > delayed work items and also keep activation ordering. > > Signed-off-by: Lai Jiangshan <laijs@cn.fujitsu.com>
Applied 1-2 to wq/for-3.7 with minor updates to comments and descriptions.
Thanks for doing this!
-- tejun
| |