Skip to content

xfs: fix mount vs shrinker race

Dave Chinner linux-xfs 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest2 patches 8 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2xfs: add mount delay debug optionfs/xfs/xfs_globals.c fs/xfs/xfs_super.c fs/xfs/xfs_sysctl.h +1 more+45 -02 replies
2/2xfs: don't shrink the inode cache until after setup completesfs/xfs/xfs_mount.c fs/xfs/xfs_mount.h fs/xfs/xfs_super.c+12 -06 replies

Reviews trailers per patch

1 of 2 patches has a Reviewed-by or Acked-by.

PatchBrian Foster
1/2R-b
2/2

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [PATCH 0/2] xfs: fix mount vs shrinker race

Hi folks,

These two patches exercise and fix a mount vs shrinker race that can result in an oops. The first patch adds a delay after sufficient superblock state has been set up to allow the VFS superblock shrinker to run, but not enough XFS state for the shrinker to run without crashing. The second patch fixes the problem.

Thoughts, comments?

Cheers,

Dave.