From: Ioannis Angelakopoulos <iangelak@fb.com>
To: <linux-btrfs@vger.kernel.org>, <kernel-team@fb.com>
Subject: [PATCH 0/1] btrfs: Add a lockdep annotation for the reservation space wait event
Date: Fri, 12 Aug 2022 11:17:54 -0700 [thread overview]
Message-ID: <20220812181754.1535281-1-iangelak@fb.com> (raw)
Hello,
with this patch series we add a lockdep annotation for the reservation
space wait event in btrfs.
The condition modification and signaling for the waitqueue are
protected by the space_info->lock spinlock for the most part.
The function that can potentially be involved in a deadlock and is not
protected by the spinlock is flush_space() in fs/btrfs/space-info.c.
Thus we place the lockdep annotations in that function.
Important!!! This patch series depends on this patch series
https://lore.kernel.org/linux-btrfs/20220812001734.1587514-1-iangelak@fb.com/T/#t
Ioannis Angelakopoulos (1):
btrfs: Annotate the reservation space wait event with lockdep
fs/btrfs/ctree.h | 9 +++++++++
fs/btrfs/disk-io.c | 1 +
fs/btrfs/space-info.c | 25 +++++++++++++++++++++++++
3 files changed, 35 insertions(+)
--
2.30.2
next reply other threads:[~2022-08-12 18:18 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-08-12 18:17 Ioannis Angelakopoulos [this message]
2022-08-12 18:17 ` [PATCH 1/1] btrfs: Annotate the reservation space wait event with lockdep Ioannis Angelakopoulos
2022-08-13 6:15 ` kernel test robot
2022-08-13 6:46 ` kernel test robot
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=20220812181754.1535281-1-iangelak@fb.com \
--to=iangelak@fb.com \
--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