pipe: Add notification lossage handling
authorDavid Howells <dhowells@redhat.com>
Tue, 14 Jan 2020 17:07:12 +0000 (17:07 +0000)
committerDavid Howells <dhowells@redhat.com>
Tue, 19 May 2020 14:40:28 +0000 (15:40 +0100)
commite7d553d69cf63aec7de0f38fed49ccbb30922e1e
treea10a83373994d18fb79809ddf9b62be7f57d4fff
parent8cfba76383e902acbed95092163052b1572f17a8
pipe: Add notification lossage handling

Add handling for loss of notifications by having read() insert a
loss-notification message after it has read the pipe buffer that was last
in the ring when the loss occurred.

Lossage can come about either by running out of notification descriptors or
by running out of space in the pipe ring.

Signed-off-by: David Howells <dhowells@redhat.com>
fs/pipe.c
include/linux/pipe_fs_i.h
kernel/watch_queue.c
samples/watch_queue/watch_test.c