Linux XFS filesystem development
 help / color / mirror / Atom feed
* [PATCHSET 0/1] xfs: fix EFI recovery livelocks
@ 2023-08-29 23:10 Darrick J. Wong
  2023-08-29 23:11 ` [PATCH 1/1] xfs: reserve less log space when recovering log intent items Darrick J. Wong
  0 siblings, 1 reply; 3+ messages in thread
From: Darrick J. Wong @ 2023-08-29 23:10 UTC (permalink / raw)
  To: djwong, chandan.babu; +Cc: Srikanth C S, Wengang Wang, linux-xfs, david

Hi all,

This series fixes a customer-reported transaction reservation bug
introduced ten years ago that could result in livelocks during log
recovery.  Log intent item recovery single-steps each step of a deferred
op chain, which means that each step only needs to allocate one
transaction's worth of space in the log, not an entire chain all at
once.  This single-stepping is critical to unpinning the log tail since
there's nobody else to do it for us.

If you're going to start using this code, I strongly recommend pulling
from my git trees, which are linked below.

This has been lightly tested with fstests.  Enjoy!
Comments and questions are, as always, welcome.

--D

kernel git tree:
https://git.kernel.org/cgit/linux/kernel/git/djwong/xfs-linux.git/log/?h=fix-efi-recovery-6.6
---
 fs/xfs/libxfs/xfs_log_recover.h |   22 ++++++++++++++++++++++
 fs/xfs/xfs_attr_item.c          |    7 ++++---
 fs/xfs/xfs_bmap_item.c          |    4 +++-
 fs/xfs/xfs_extfree_item.c       |    4 +++-
 fs/xfs/xfs_refcount_item.c      |    6 ++++--
 fs/xfs/xfs_rmap_item.c          |    6 ++++--
 6 files changed, 40 insertions(+), 9 deletions(-)


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2023-08-30  1:02 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-08-29 23:10 [PATCHSET 0/1] xfs: fix EFI recovery livelocks Darrick J. Wong
2023-08-29 23:11 ` [PATCH 1/1] xfs: reserve less log space when recovering log intent items Darrick J. Wong
2023-08-30  0:17   ` Dave Chinner

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox