Skip to content

fix log recovery for v5 superblocks

Brian Foster linux-xfs 2 versions – New

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest5 patches 0 repliesNew
  2. v15 patches 8 repliesSuperseded

Changes in v2 from the cover letter

- Rebased to for-next.
- Limit LSN change trigger to log commit records.
- Comment rewrite/fixups.
- Refactor buffer validation handling of NULL current lsn callers (skipped bufs).
v1: http://oss.sgi.com/pipermail/xfs/2016-August/050840.html

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/5xfs: rework log recovery to submit buffers on LSN boundariesfs/xfs/xfs_log_priv.h fs/xfs/xfs_log_recover.c+66 -190 replies
2/5xfs: pass current lsn to log recovery buffer validationfs/xfs/xfs_log_recover.c+8 -60 replies
3/5xfs: don't warn on buffers not being recovered due to LSNfs/xfs/xfs_log_recover.c+26 -320 replies
4/5xfs: update metadata LSN in buffers during log recoveryfs/xfs/xfs_log_recover.c+38 -30 replies
5/5xfs: log recovery tracepoints to track current lsn and buffer submissionfs/xfs/xfs_log_recover.c fs/xfs/xfs_trace.h+31 -20 replies

Reviews trailers per patch

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

Read the v2 thread

Cover letter [PATCH v2 0/5] fix log recovery for v5 superblocks

Hi all,

Here's v2 of the series to fix up log recovery to update metadata LSNs and handle buffer submission correctly. This is mostly similar to v1. The primary functional change is a fixup to patch 1, that came out of the discussion with Dave, to drain queued buffers on LSN changes of commit log records (as opposed to all LSN changes). Otherwise, fixes include some light refactoring and comment reworks. Thoughts, reviews, flames appreciated.

Brian

v2:
- Rebased to for-next.
- Limit LSN change trigger to log commit records.
- Comment rewrite/fixups.
- Refactor buffer validation handling of NULL current lsn callers (skipped bufs).
v1: http://oss.sgi.com/pipermail/xfs/2016-August/050840.html

Brian Foster (5):
xfs: rework log recovery to submit buffers on LSN boundaries
xfs: pass current lsn to log recovery buffer validation
xfs: don't warn on buffers not being recovered due to LSN
xfs: update metadata LSN in buffers during log recovery
xfs: log recovery tracepoints to track current lsn and buffer
submission

 fs/xfs/xfs_log_priv.h    |   3 +-
 fs/xfs/xfs_log_recover.c | 191 +++++++++++++++++++++++++++++++++--------------
 fs/xfs/xfs_trace.h       |  31 +++++++-
 3 files changed, 166 insertions(+), 59 deletions(-)
Signature · 1 line
2.5.5