workqueue: Make @flags handling consistent across set_work_data() and friends
authorTejun Heo <tj@kernel.org>
Wed, 21 Feb 2024 05:36:15 +0000 (19:36 -1000)
committerTejun Heo <tj@kernel.org>
Wed, 21 Feb 2024 05:36:15 +0000 (19:36 -1000)
commitbccdc1faafaf32e00d6e4dddca1ded64e3272189
tree7028201407afaae74aa0197087fb19eae678d965
parentafe928c1dc611bec155d834020e0631e026aeb8a
workqueue: Make @flags handling consistent across set_work_data() and friends

- set_work_data() takes a separate @flags argument but just ORs it to @data.
  This is more confusing than helpful. Just take @data.

- Use the name @flags consistently and add the parameter to
  set_work_pool_and_{keep|clear}_pending(). This will be used by the planned
  disable/enable support.

No functional changes.

Signed-off-by: Tejun Heo <tj@kernel.org>
Reviewed-by: Lai Jiangshan <jiangshanlai@gmail.com>
kernel/workqueue.c