workqueue: Upgrade queue_work_on() comment
authorPaul E. McKenney <paulmck@kernel.org>
Wed, 1 Dec 2021 01:00:30 +0000 (17:00 -0800)
committerTejun Heo <tj@kernel.org>
Wed, 1 Dec 2021 16:47:45 +0000 (06:47 -1000)
commit443378f0664a78756c3e3aeaab92750fe1e05735
treefa6d62e9f53ecaa1cba1b3be3405307fe518d7b3
parent58e1100fdc5990b0cc0d4beaf2562a92e621ac7d
workqueue: Upgrade queue_work_on() comment

The current queue_work_on() docbook comment says that the caller must
ensure that the specified CPU can't go away, but does not spell out the
consequences, which turn out to be quite mild.  Therefore expand this
comment to explicitly say that the penalty for failing to nail down the
specified CPU is that the workqueue handler might find itself executing
on some other CPU.

Cc: Tejun Heo <tj@kernel.org>
Cc: Lai Jiangshan <jiangshanlai@gmail.com>
Signed-off-by: Paul E. McKenney <paulmck@kernel.org>
Signed-off-by: Tejun Heo <tj@kernel.org>
kernel/workqueue.c