Skip to content

btrfs: fix a deadlock with reclaim during logging/log replay

[email protected] linux-btrfs 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest4 patches 9 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/4btrfs: use NOFS context when getting inodes during logging and log replayfs/btrfs/tree-log.c+28 -155 replies
2/4btrfs: remove super block argument from btrfs_iget()fs/btrfs/btrfs_inode.h fs/btrfs/defrag.c fs/btrfs/export.c +6 more+19 -220 replies
3/4btrfs: remove super block argument from btrfs_iget_path()fs/btrfs/btrfs_inode.h fs/btrfs/free-space-cache.c fs/btrfs/inode.c+7 -80 replies
4/4btrfs: remove super block argument from btrfs_iget_locked()fs/btrfs/inode.c+3 -40 replies

Reviews trailers per patch

None of the 4 patches has a Reviewed-by or Acked-by of their own; the series has one for all of them.

PatchJohannes ThumshirnJosef BacikDavid SterbaQu Wenruo
SeriesR-b R-b R-b R-b
1/4
2/4
3/4
4/4

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes. Scroll the table sideways for all 4 reviewers.

Read the v1 thread

Cover letter [PATCH 0/4] btrfs: fix a deadlock with reclaim during logging/log replay

From: Filipe Manana <[email protected]>

Fix a deadlock when opening an inode during inode logging and log replay due to a GFP_KERNEL allocation, reported by syzbot. The rest is just some trivial cleanups. Details in the change logs.

Filipe Manana (4):
btrfs: use NOFS context when getting inodes during logging and log replay
btrfs: remove super block argument from btrfs_iget()
btrfs: remove super block argument from btrfs_iget_path()
btrfs: remove super block argument from btrfs_iget_locked()

 fs/btrfs/btrfs_inode.h      |  6 +++---
 fs/btrfs/defrag.c           |  2 +-
 fs/btrfs/export.c           |  4 ++--
 fs/btrfs/free-space-cache.c |  3 +--
 fs/btrfs/inode.c            | 24 ++++++++++-----------
 fs/btrfs/ioctl.c            |  3 +--
 fs/btrfs/relocation.c       |  4 ++--
 fs/btrfs/send.c             |  9 ++++----
 fs/btrfs/super.c            |  2 +-
 fs/btrfs/tree-log.c         | 43 ++++++++++++++++++++++++-------------
 10 files changed, 54 insertions(+), 46 deletions(-)
Signature · 1 line
2.43.0