summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorDavidlohr Bueso <dave@stgolabs.net>2017-01-29 07:15:31 -0800
committerIngo Molnar <mingo@kernel.org>2017-02-01 10:02:18 +0100
commit0754445d71c37a7afd4f0790a9be4cf53c1b8cc4 (patch)
treeb908b3d0257b4346b4b615ebcf5c70f085913fda /include
parent7e1f9467d1e48c64c27d6a32de1bfd1b9cdb1002 (diff)
downloadlinux-stable-0754445d71c37a7afd4f0790a9be4cf53c1b8cc4.tar.gz
linux-stable-0754445d71c37a7afd4f0790a9be4cf53c1b8cc4.tar.bz2
linux-stable-0754445d71c37a7afd4f0790a9be4cf53c1b8cc4.zip
sched/wake_q: Clarify queue reinit comment
As of: bcc9a76d5ac ("locking/rwsem: Reinit wake_q after use") the comment regarding the list reinitialization no longer applies, update it with the new wake_q_init() helper. Signed-off-by: Davidlohr Bueso <dbueso@suse.de> Acked-by: Waiman Long <longman@redhat.com> Cc: peterz@infradead.org Cc: longman@redhat.com Cc: akpm@linux-foundation.org Cc: paulmck@linux.vnet.ibm.com Cc: torvalds@linux-foundation.org Link: http://lkml.kernel.org/r/20170129151531.GA2444@linux-80c1.suse Signed-off-by: Ingo Molnar <mingo@kernel.org>
Diffstat (limited to 'include')
-rw-r--r--include/linux/sched.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/linux/sched.h b/include/linux/sched.h
index 4e62b378bd65..1cc0dede2122 100644
--- a/include/linux/sched.h
+++ b/include/linux/sched.h
@@ -1000,8 +1000,8 @@ enum cpu_idle_type {
*
* The DEFINE_WAKE_Q macro declares and initializes the list head.
* wake_up_q() does NOT reinitialize the list; it's expected to be
- * called near the end of a function, where the fact that the queue is
- * not used again will be easy to see by inspection.
+ * called near the end of a function. Otherwise, the list can be
+ * re-initialized for later re-use by wake_q_init().
*
* Note that this can cause spurious wakeups. schedule() callers
* must ensure the call is done inside a loop, confirming that the