All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/3] btrfs: fixes for races when checking if an inode was logged before
@ 2025-08-06 11:11 fdmanana
  2025-08-06 11:11 ` [PATCH 1/3] btrfs: fix race between logging inode and checking if it " fdmanana
                   ` (3 more replies)
  0 siblings, 4 replies; 5+ messages in thread
From: fdmanana @ 2025-08-06 11:11 UTC (permalink / raw)
  To: linux-btrfs

From: Filipe Manana <fdmanana@suse.com>

The first patch is actually a new version of a patch sent out before [1],
because holding the inode's log_mutex at inode_logged() can make lockdep
unhappy in situations like when logging conflicting inodes, where we are
already holding the log_mutex of some other inode and could potentially
result in a ABBA deadlock.

The second patch splits part of what the initial version of patch 1 fixed,
but with a different solution that makes the management of an inode's
last_dir_index_offset field simpler.

Patch 3 is completely new.

Details in the change logs.

[1] - https://lore.kernel.org/linux-btrfs/7585d15c0e9c163d5cdf32307014a4e792e62541.1753807163.git.fdmanana@suse.com/

Filipe Manana (3):
  btrfs: fix race between logging inode and checking if it was logged before
  btrfs: fix race between setting last_dir_index_offset and inode logging
  btrfs: avoid load/store tearing races when checking if an inode was logged

 fs/btrfs/btrfs_inode.h |  2 +-
 fs/btrfs/inode.c       |  1 +
 fs/btrfs/tree-log.c    | 78 ++++++++++++++++++++++++++++--------------
 3 files changed, 55 insertions(+), 26 deletions(-)

-- 
2.47.2


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

end of thread, other threads:[~2025-08-08 21:06 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-08-06 11:11 [PATCH 0/3] btrfs: fixes for races when checking if an inode was logged before fdmanana
2025-08-06 11:11 ` [PATCH 1/3] btrfs: fix race between logging inode and checking if it " fdmanana
2025-08-06 11:11 ` [PATCH 2/3] btrfs: fix race between setting last_dir_index_offset and inode logging fdmanana
2025-08-06 11:11 ` [PATCH 3/3] btrfs: avoid load/store tearing races when checking if an inode was logged fdmanana
2025-08-08 21:07 ` [PATCH 0/3] btrfs: fixes for races when checking if an inode was logged before Boris Burkov

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.