From: Josef Bacik <josef@toxicpanda.com>
To: Christoph Hellwig <hch@infradead.org>
Cc: Filipe Manana <fdmanana@kernel.org>,
linux-btrfs@vger.kernel.org, kernel-team@fb.com
Subject: Re: [PATCH v3 1/3] btrfs: convert the buffer_radix to an xarray
Date: Fri, 25 Apr 2025 11:44:34 -0400 [thread overview]
Message-ID: <20250425154434.GA494636@perftesting> (raw)
In-Reply-To: <aAuPr5r1AT-uT4B5@infradead.org>
On Fri, Apr 25, 2025 at 06:35:43AM -0700, Christoph Hellwig wrote:
> On Thu, Apr 24, 2025 at 05:07:29PM +0100, Filipe Manana wrote:
> > > Because we have to do the atomic_inc_not_zero() under the rcu_lock(), so we have
> > > have to open code the retry logic.
> >
> > Sure, but xa_load() can still be called while we are under the rcu
> > read section, can't it?
>
> Yes, and that's the usual pattern. The double rcu critical section
> still irks me, but willy correctly says that it can't really matter
> for performance given how cheap it is.
>
This was my concern as well, but it looks like only me and hch are annoyed by
it, so I'll fix it to just have the double locking. Thanks,
Josef
next prev parent reply other threads:[~2025-04-25 15:44 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-04-18 13:57 [PATCH v3 0/3] btrfs: simplify extent buffer writeback Josef Bacik
2025-04-18 13:57 ` [PATCH v3 1/3] btrfs: convert the buffer_radix to an xarray Josef Bacik
2025-04-23 15:08 ` Filipe Manana
2025-04-24 15:47 ` Josef Bacik
2025-04-24 16:07 ` Filipe Manana
2025-04-25 13:35 ` Christoph Hellwig
2025-04-25 15:44 ` Josef Bacik [this message]
2025-04-25 15:48 ` Josef Bacik
2025-04-25 15:59 ` Daniel Vacek
2025-04-18 13:57 ` [PATCH v3 2/3] btrfs: set DIRTY and WRITEBACK tags on the buffer_tree Josef Bacik
2025-04-23 15:16 ` Filipe Manana
2025-04-18 13:57 ` [PATCH v3 3/3] btrfs: use buffer radix for extent buffer writeback operations Josef Bacik
2025-04-23 16:00 ` Filipe Manana
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=20250425154434.GA494636@perftesting \
--to=josef@toxicpanda.com \
--cc=fdmanana@kernel.org \
--cc=hch@infradead.org \
--cc=kernel-team@fb.com \
--cc=linux-btrfs@vger.kernel.org \
/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