kernel: workqueue: clarify wq_worker_last_func() caller requirements
authorJohannes Weiner <hannes@cmpxchg.org>
Fri, 8 Mar 2019 00:29:30 +0000 (16:29 -0800)
committerLinus Torvalds <torvalds@linux-foundation.org>
Fri, 8 Mar 2019 02:32:01 +0000 (18:32 -0800)
commit4b0470027528ba98f9617f4ceba328de71d2fe49
tree396305027606c8acc1418ac9d2475b5a370aa9ff
parent6eb3c3d0a52dca337e327ae8868ca1f44a712e02
kernel: workqueue: clarify wq_worker_last_func() caller requirements

This function can only be called safely from very specific scheduler
contexts.  Document those.

Link: http://lkml.kernel.org/r/20190206150528.31198-1-hannes@cmpxchg.org
Signed-off-by: Johannes Weiner <hannes@cmpxchg.org>
Suggested-by: Andrew Morton <akpm@linux-foundation.org>
Acked-by: Tejun Heo <tj@kernel.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
kernel/workqueue.c