From: David Howells <dhowells@redhat.com>
To: Hongchen Zhang <zhanghongchen@loongson.cn>
Cc: dhowells@redhat.com, Alexander Viro <viro@zeniv.linux.org.uk>,
Christian Brauner <brauner@kernel.org>,
Steve French <stfrench@microsoft.com>,
Jens Axboe <axboe@kernel.dk>, David Disseldorp <ddiss@suse.de>,
Luis Chamberlain <mcgrof@kernel.org>,
Nick Alcock <nick.alcock@oracle.com>,
linux-fsdevel@vger.kernel.org, linux-kernel@vger.kernel.org,
loongson-kernel@lists.loongnix.cn
Subject: Re: [PATCH v5 2/2] pipe: use __pipe_{lock,unlock} instead of spinlock
Date: Mon, 14 Aug 2023 09:47:00 +0100 [thread overview]
Message-ID: <3955287.1692002820@warthog.procyon.org.uk> (raw)
In-Reply-To: <20230811010309.20196-2-zhanghongchen@loongson.cn>
Hongchen Zhang <zhanghongchen@loongson.cn> 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
next prev parent reply other threads:[~2023-08-14 8:48 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-08-11 1:03 [PATCH v5 1/2] watch_queue: refactor post_one_notification Hongchen Zhang
2023-08-11 1:03 ` [PATCH v5 2/2] pipe: use __pipe_{lock,unlock} instead of spinlock Hongchen Zhang
2023-08-14 8:47 ` David Howells [this message]
2023-08-15 6:01 ` Hongchen Zhang
2023-08-19 3:28 ` Hongchen Zhang
2023-08-19 3:53 ` Matthew Wilcox
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=3955287.1692002820@warthog.procyon.org.uk \
--to=dhowells@redhat.com \
--cc=axboe@kernel.dk \
--cc=brauner@kernel.org \
--cc=ddiss@suse.de \
--cc=linux-fsdevel@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=loongson-kernel@lists.loongnix.cn \
--cc=mcgrof@kernel.org \
--cc=nick.alcock@oracle.com \
--cc=stfrench@microsoft.com \
--cc=viro@zeniv.linux.org.uk \
--cc=zhanghongchen@loongson.cn \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).