Re: [PATCH v5 2/2] pipe: use __pipe_{lock,unlock} instead of spinlock

From: David Howells
Date: Mon Aug 14 2023 - 04:48:48 EST


Hongchen Zhang <zhanghongchen@xxxxxxxxxxx> wrote:

> - spin_lock_irq(&pipe->rd_wait.lock);
> + __pipe_lock(pipe);

This mustn't sleep. post_one_notification() needs to be callable with a
spinlock held.

David