]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/commit
workqueue: Change the code of calculating work_flags in insert_wq_barrier()
authorLai Jiangshan <laijs@linux.alibaba.com>
Tue, 17 Aug 2021 01:32:36 +0000 (09:32 +0800)
committerTejun Heo <tj@kernel.org>
Tue, 17 Aug 2021 17:49:10 +0000 (07:49 -1000)
commitd21cece0dbb424ad3ff9e49bde6954632b8efede
treef0209f7e615290d4b0abaeb806231e83ad9725cd
parentc4560c2c88a4c809800ba8e76faabaf80bf6ee89
workqueue: Change the code of calculating work_flags in insert_wq_barrier()

Add a local var @work_flags to calculate work_flags step by step, so that
we don't need to squeeze several flags in only the last line of code.

Parepare for next patch to add a bit to barrier work item's flag.  Not
squshing this to next patch makes it clear that what it will have changed.

No functional change intended.

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