Linux Btrfs filesystem development
 help / color / mirror / Atom feed
* [PATCH 0/1] btrfs: Add a lockdep annotation for the reservation space wait event
@ 2022-08-12 18:17 Ioannis Angelakopoulos
  2022-08-12 18:17 ` [PATCH 1/1] btrfs: Annotate the reservation space wait event with lockdep Ioannis Angelakopoulos
  0 siblings, 1 reply; 4+ messages in thread
From: Ioannis Angelakopoulos @ 2022-08-12 18:17 UTC (permalink / raw)
  To: linux-btrfs, kernel-team

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


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2022-08-13  6:47 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-08-12 18:17 [PATCH 0/1] btrfs: Add a lockdep annotation for the reservation space wait event Ioannis Angelakopoulos
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

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox