From: Tejun Heo Date: Wed, 13 Mar 2013 23:51:35 +0000 (-0700) Subject: workqueue: fix max_active handling in init_and_link_pwq() X-Git-Tag: omap-for-v3.10/dt-fixes-for-merge-window~125^2~46 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=983ca25e738ee0c9c5435a503a6bb0034d4552b0;p=pandora-kernel.git workqueue: fix max_active handling in init_and_link_pwq() Since 9e8cd2f589 ("workqueue: implement apply_workqueue_attrs()"), init_and_link_pwq() may be called to initialize a new pool_workqueue for a workqueue which is already online, but the function was setting pwq->max_active to wq->saved_max_active without proper synchronization. Fix it by calling pwq_adjust_max_active() under proper locking instead of manually setting max_active. Signed-off-by: Tejun Heo --- Reading git-diff-tree failed