Skip to content

xfs: handle dquot buffer readahead in log recovery correctly

Dave Chinner linux-xfs 3 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v3 Latest2 patches 1 replyIn review
  2. v21 patch 3 repliesSuperseded
  3. v11 patch 3 repliesSuperseded

Patches in v3 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2xfs: inode recovery readahead can race with inode buffer creationfs/xfs/libxfs/xfs_inode_buf.c fs/xfs/xfs_buf.c+14 -51 reply
2/2xfs: handle dquot buffer readahead in log recovery correctlyfs/xfs/libxfs/xfs_dquot_buf.c fs/xfs/libxfs/xfs_inode_buf.c fs/xfs/libxfs/xfs_quota_defs.h +2 more+41 -90 replies

Reviews trailers per patch

All 2 patches have a Reviewed-by or Acked-by.

PatchBrian Foster
1/2R-b
2/2R-b

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

Read the v3 thread

Cover letter [PATCH 0/2 v3] xfs: handle dquot buffer readahead in log recovery correctly

Hi folks,

Version 3 of this patchset. Version 2 of the patchset added a fix for the inode readahead error setting in log recovery, which turned out to be problematic.

I've split that change out into it's own patch which includes the fix it requires to prevent a race condition in log recovery to do with inode buffer creation recovery. This is a generic fix to xfs_buf_get_map(), in that if we are returning an initialised buffer for the caller to use, it shouldn't have an error set on it from the previous operation. If we don't clear the error before returning the buffer, it causes unexpected failures further down the line. This caused log recovery failures in generic/073 on slow disks (i.e. needed sufficient readahead IO latency to open the race window) and a couple of other tests as well.

The second patch is essentially the original patch with just the inode buffer changes removed. There are no other changes to that patch.

Cheers,

Dave.

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