From: Lai Jiangshan Date: Tue, 19 May 2015 10:03:47 +0000 (+0800) Subject: workqueue: separate out and refactor the locking of applying attrs X-Git-Tag: omap-for-v4.3/legacy-v2-signed~115^2~5 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a0111cf6710bd1b4145ef313d3f4772602af051b;p=pandora-kernel.git workqueue: separate out and refactor the locking of applying attrs Applying attrs requires two locks: get_online_cpus() and wq_pool_mutex, and this code is duplicated at two places (apply_workqueue_attrs() and workqueue_set_unbound_cpumask()). So we separate out this locking code into apply_wqattrs_[un]lock() and do a minor refactor on apply_workqueue_attrs(). The apply_wqattrs_[un]lock() will be also used on later patch for ensuring attrs changes are properly synchronized. tj: minor updates to comments Signed-off-by: Lai Jiangshan Signed-off-by: Tejun Heo --- Reading git-diff-tree failed