[RFC PATCH 08/21] pipe: Check for ring full inside of the spinlock in pipe_write()

Linus Torvalds torvalds at linux-foundation.org
Tue Oct 15 22:20:47 UTC 2019


On Tue, Oct 15, 2019 at 2:49 PM David Howells <dhowells at redhat.com> wrote:
>
> +                       if (head - pipe->tail == buffers) {

Can we just have helper inline functions for these things?

You describe them in the commit message of 03/21 (good), but it would
be even better if the code was just self-describing..

           Linus



More information about the Linux-security-module-archive mailing list