xfs: log fixes for for-next
Get series with b4
b4 am [email protected]Versions newest first · linked by author and title
- v2 Latest8 patches 34 repliesIn review
- v12 patches 10 repliesSuperseded
Patches in v2 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/8 | xfs: add iclog state trace eventsfs/ fs/ fs/ | +88 | 2 replies | |
| 2/8 | xfs: don't wait on future iclogs when pushing the CILfs/ | +45 | 2 replies | |
| 3/8 | xfs: move xlog_commit_record to xfs_log_cil.cfs/ fs/ fs/ | +44 | 3 replies | |
| 4/8 | xfs: pass a CIL context to xlog_write()fs/ fs/ fs/ | +27 | 4 replies | |
| 5/8 | xfs: factor out log write ordering from xlog_cil_push_work()fs/ | +52 | 3 replies | |
| 6/8 | xfs: separate out setting CIL context LSNs from xlog_writefs/ fs/ fs/ | +27 | 2 replies | |
| 7/8 | xfs: attached iclog callbacks in xlog_cil_set_ctx_write_state()fs/ fs/ fs/ | +42 | 2 replies | |
| 8/8 | xfs: order CIL checkpoint start recordsfs/ fs/ fs/ | +71 | 2 replies |
Reviews trailers per patch
3 of 8 patches have a Reviewed-by or Acked-by.
| Patch | Darrick J. Wong | Christoph Hellwig |
|---|---|---|
| 1/8 | R-b | R-b |
| 2/8 | ||
| 3/8 | R-b | R-b |
| 4/8 | ||
| 5/8 | R-b | |
| 6/8 | ||
| 7/8 | ||
| 8/8 |
Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.
Cover letter [PATCH 0/8 V2] xfs: log fixes for for-next
Hi folks,
This is followup from the first set of log fixes for for-next that were posted here:
The first two patches of this series are updates for those patches, change log below. The rest is the fix for the bigger issue we uncovered in investigating the generic/019 failures, being that we're triggering a zero-day bug in the way log recovery assigns LSNs to checkpoints.
The "simple" fix of using the same ordering code as the commit record for the start records in the CIL push turned into a lot of patches once I started cleaning it up, separating out all the different bits and finally realising all the things I needed to change to avoid unintentional logic/behavioural changes. Hence there's some code movement, some factoring, API changes to xlog_write(), changing where we attach callbacks to commit iclogs so they remain correctly ordered if there are multiple commit records in the one iclog and then, finally, strictly ordering the start records....
The original "simple fix" I tested last night ran almost a thousand cycles of generic/019 without a log hang or recovery failure of any kind. The refactored patchset has run a couple hundred cycles of g/019 and g/475 over the last few hours without a failure, so I'm posting this so we can get a review iteration done while I sleep so we can - hopefully - get this sorted out before the end of the week.
Cheers,
Dave.
Version 2:
- tested on 5.13-rc6 + linux-xfs/for-next
- added strings for XLOG_STATE* variables to tracepoint output.
- rewrote the past/future iclog detection to use iclog header LSNs rather than iclog states as the state values do not tell us anything useful about the temporal relativity of the iclog in relation to the current commit iclog.
- added patches to strictly order checkpoint start records the same way we strictly order checkpoint commit records.