diff options
author | David Howells <dhowells@redhat.com> | 2019-10-16 18:47:32 +0300 |
---|---|---|
committer | David Howells <dhowells@redhat.com> | 2019-11-15 19:22:54 +0300 |
commit | 6718b6f855a0b4962d54bd625be2718cb820cec6 (patch) | |
tree | 39d5e543cf914b26bdf4937b15d167c66c615f45 /crypto/Kconfig | |
parent | 8cefc107ca54c8b06438b7dc9cc08bc0a11d5b98 (diff) | |
download | linux-6718b6f855a0b4962d54bd625be2718cb820cec6.tar.xz |
pipe: Allow pipes to have kernel-reserved slots
Split pipe->ring_size into two numbers:
(1) pipe->ring_size - indicates the hard size of the pipe ring.
(2) pipe->max_usage - indicates the maximum number of pipe ring slots that
userspace orchestrated events can fill.
This allows for a pipe that is both writable by the general kernel
notification facility and by userspace, allowing plenty of ring space for
notifications to be added whilst preventing userspace from being able to
pin too much unswappable kernel space.
Signed-off-by: David Howells <dhowells@redhat.com>
Diffstat (limited to 'crypto/Kconfig')
0 files changed, 0 insertions, 0 deletions