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

From: Linus Torvalds
Date: Tue Oct 15 2019 - 18:21:11 EST

On Tue, Oct 15, 2019 at 2:49 PM David Howells <dhowells@xxxxxxxxxx> 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..