From: Lai Jiangshan Date: Mon, 25 Mar 2013 23:57:19 +0000 (-0700) Subject: workqueue: protect wq->saved_max_active with wq->mutex X-Git-Tag: omap-for-v3.10/dt-fixes-for-merge-window~125^2~21 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a357fc03262988f2aa6c4a668b89be22b11ff1e7;p=pandora-kernel.git workqueue: protect wq->saved_max_active with wq->mutex We're expanding wq->mutex to cover all fields specific to each workqueue with the end goal of replacing pwq_lock which will make locking simpler and easier to understand. This patch makes wq->saved_max_active protected by wq->mutex instead of pwq_lock. As pwq_lock locking around pwq_adjust_mac_active() is no longer necessary, this patch also replaces pwq_lock lockings of for_each_pwq() around pwq_adjust_max_active() to wq->mutex. tj: Rebased on top of the current dev branch. Updated description. Signed-off-by: Lai Jiangshan Signed-off-by: Tejun Heo --- Reading git-diff-tree failed