Skip to content

xfs: inode reclaim vs the world

Dave Chinner linux-xfs 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v3 Latest11 patches 13 repliesIn review

Patches in v3 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/11xfs: we don't need no steekin ->evict_inodefs/xfs/xfs_super.c+7 -213 replies
2/11xfs: xfs_iflush_cluster fails to abort on errorfs/xfs/xfs_inode.c+13 -41 reply
3/11xfs: fix inode validity check in xfs_iflush_clusterfs/xfs/xfs_inode.c+4 -40 replies
4/11xfs: skip stale inodes in xfs_iflush_clusterfs/xfs/xfs_inode.c+1 -00 replies
5/11xfs: optimise xfs_iext_destroyfs/xfs/libxfs/xfs_inode_fork.c+21 -71 reply
6/11xfs: xfs_inode_free() isn't RCU safefs/xfs/xfs_icache.c+7 -70 replies
7/11xfs: mark reclaimed inodes invalid earlierfs/xfs/xfs_icache.c fs/xfs/xfs_inode.c+45 -84 replies
8/11xfs: xfs_iflush_cluster has range issuesfs/xfs/xfs_inode.c+11 -20 replies
9/11xfs: rename variables in xfs_iflush_cluster for clarityfs/xfs/xfs_inode.c+37 -370 replies
10/11xfs: simplify inode reclaim tagging interfacesfs/xfs/xfs_icache.c+49 -482 replies
11/11xfs: move reclaim tagging functionsfs/xfs/xfs_icache.c+116 -1191 reply

Reviews trailers per patch

10 of 11 patches have a Reviewed-by or Acked-by.

PatchBrian FosterChristoph HellwigDave ChinnerShyam Kaushik
1/11R-b
2/11R-b Diagnosed-by T-b
3/11Discovered-by R-b
4/11R-b R-b
5/11R-b
6/11Discovered-by R-b
7/11T-b
8/11R-b R-b
9/11R-b
10/11R-b
11/11R-b

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 v3 thread

Cover letter [PATCH 00/11 v3] xfs: inode reclaim vs the world

Hi folks,

The inode reclaim patchset has grown somewhat larger with all the fixes I've accrued over the past couple of days for issues that have been reported. I've just re-ordered the patchset to have all the bug fixes that need to go into 4.6-rc up front, followed by other bug fixes, followed by all the cleanups I wrote as I went along fixing things. I want to get this out before LSFMM, so I'm posting this before I've done a full verification that I've got the patches correct, and they are still running through xfstests right now.

Patch 1 is new - it fixes a regression introduced in 4.6-rc1 and is caused by clearing the vfs inode i_mode in ->evict_inode, when there is code in evict() that requires the mode to be intact until ->destroy_inode.

Patch 2 is new - if fixes the inode log item leak that left a dirty log item on the AIL after the inode had been reclaimed, resulting in unmountable filesystems and a couple of use-after-free vectors.

Patch 3 is the original fix for the xfs_iflush_cluster lookup validity checks that were incorect

Patch 4 is the original fix for avoiding flushing stale inodes.

Patch 5 is new, and comes from Alex @ Zadara to avoid having to reallocate memory when tearing down the inode extent lists. This is a necessary pre-requisite for patch 6.

Patch 6 is the original patch that pushed all the inode memory freeing into the RCU callback, so that xfs_iflush_cluster didn't reference freed memory when racing with reclaim.

Patch 7 is the original patch that made reclaim races eaasier to detect.

Patch 8 is the original patch that drops out of xfs-iflush_cluster on the first inode beyond the end of the current cluster.

Patch 9 is the original patch that renames the variables in xfs_iflush_cluster().

Patch 10 and 11 are new patches that simplify the inode reclaim tagging interfaces to remove dependencies on the struct xfs_inode and the inode number where they are not actually required.

-Dave.

_______________________________________________
xfs mailing list
[email protected]
http://oss.sgi.com/mailman/listinfo/xfs