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

From: Hongchen Zhang
Date: Fri Aug 18 2023 - 23:38:59 EST


Hi David,

On 2023/8/14 pm 4:47, David Howells wrote:
Hongchen Zhang <zhanghongchen@xxxxxxxxxxx> wrote:

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

I changed the code and the post_one_notification is not called inside spin lock ,please check this patch again.
This mustn't sleep. post_one_notification() needs to be callable with a
spinlock held.

David



----
Best Regards
Hongchen Zhang