workqueue: Cleanups around process_scheduled_works()
authorTejun Heo <tj@kernel.org>
Tue, 8 Aug 2023 01:57:22 +0000 (15:57 -1000)
committerTejun Heo <tj@kernel.org>
Tue, 8 Aug 2023 01:57:22 +0000 (15:57 -1000)
commitc0ab017d43f4c4147f7ecf3ca3cb872a416e17c7
tree09bb413ada6b38a4592366325b12acae55a27ab6
parentbc8b50c2dfac946c1beed782c1823e52cf55a352
workqueue: Cleanups around process_scheduled_works()

* Drop the trivial optimization in worker_thread() where it bypasses calling
  process_scheduled_works() if the first work item isn't linked. This is a
  mostly pointless micro optimization and gets in the way of improving the
  work processing path.

* Consolidate pool->watchdog_ts updates in the two callers into
  process_scheduled_works().

Signed-off-by: Tejun Heo <tj@kernel.org>
kernel/workqueue.c