]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/commit
workqueue: reuse the already calculated pwq in try_to_grab_pending()
authorLai Jiangshan <laijs@cn.fujitsu.com>
Thu, 10 Jul 2014 16:11:13 +0000 (00:11 +0800)
committerTejun Heo <tj@kernel.org>
Fri, 11 Jul 2014 15:14:50 +0000 (11:14 -0400)
commit9c34a7042e6fe79b900bd44db03dde8a4ecdf6f6
tree1ff3a9f8b3fdea4fd8e7a2e2bbcb43b91e0aa96b
parent85327af61d4cb1700d4c71e8080f7c7df9bccafb
workqueue: reuse the already calculated pwq in try_to_grab_pending()

try_to_grab_pending() was re-calculating the associated pwq using
get_work_pwq() when it already has it cached in a local varible and
the association can't change.  Reuse the local variable instead.

This doesn't introduce any functional changes.

tj: Updated description.

Signed-off-by: Lai Jiangshan <laijs@cn.fujitsu.com>
Signed-off-by: Tejun Heo <tj@kernel.org>
kernel/workqueue.c