[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <b6f395a6-ca81-f107-0a3f-59e8f8d41f9d@loongson.cn>
Date: Sat, 19 Aug 2023 11:28:58 +0800
From: Hongchen Zhang <zhanghongchen@...ngson.cn>
To: David Howells <dhowells@...hat.com>
Cc: Alexander Viro <viro@...iv.linux.org.uk>,
Christian Brauner <brauner@...nel.org>,
Steve French <stfrench@...rosoft.com>,
Jens Axboe <axboe@...nel.dk>, David Disseldorp <ddiss@...e.de>,
Luis Chamberlain <mcgrof@...nel.org>,
Nick Alcock <nick.alcock@...cle.com>,
linux-fsdevel@...r.kernel.org, linux-kernel@...r.kernel.org,
loongson-kernel@...ts.loongnix.cn
Subject: Re: [PATCH v5 2/2] pipe: use __pipe_{lock,unlock} instead of spinlock
Hi David,
On 2023/8/14 pm 4:47, David Howells wrote:
> Hongchen Zhang <zhanghongchen@...ngson.cn> 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
Powered by blists - more mailing lists