Skip to content

btrfs: Add a lockdep annotation for the reservation space wait event

Ioannis Angelakopoulos linux-btrfs llvm 1 version New

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest1 patch 0 repliesNew

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/1btrfs: Annotate the reservation space wait event with lockdepfs/btrfs/ctree.h fs/btrfs/disk-io.c fs/btrfs/space-info.c+35 -00 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 0/1] btrfs: Add a lockdep annotation for the reservation space wait event

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/[email protected]/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(+)
Signature · 1 line
2.30.2