Add wake_up_interruptible_sync_poll_locked()
authorDavid Howells <dhowells@redhat.com>
Tue, 24 Sep 2019 15:07:45 +0000 (16:07 +0100)
committerDavid Howells <dhowells@redhat.com>
Thu, 31 Oct 2019 15:12:23 +0000 (15:12 +0000)
commitf94df9890e98f2090c6a8d70c795134863b70201
treeb8af2f2af5a1368a200d26002d61c6c2e59b7c1c
parentce4dd4429b3c7e4506870796f3b8b06d707d2928
Add wake_up_interruptible_sync_poll_locked()

Add a wakeup call for a case whereby the caller already has the waitqueue
spinlock held.  This can be used by pipes to alter the ring buffer indices
and issue a wakeup under the same spinlock.

Signed-off-by: David Howells <dhowells@redhat.com>
Acked-by: Peter Zijlstra (Intel) <peterz@infradead.org>
include/linux/wait.h
kernel/sched/wait.c