All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/2] btrfs: fixes for send with relocation and reclaim
@ 2021-06-17 10:12 fdmanana
  2021-06-17 10:12 ` [PATCH 1/2] btrfs: ensure relocation never runs while we have send operations running fdmanana
                   ` (2 more replies)
  0 siblings, 3 replies; 8+ messages in thread
From: fdmanana @ 2021-06-17 10:12 UTC (permalink / raw)
  To: linux-btrfs

From: Filipe Manana <fdmanana@suse.com>

There's a recent report from Chris Murphy on a crash caused by send
triggering reclaim and inode eviction due to page/memory allocation,
the second patch fixes that. The first one just prevents relocation from
happening while there are send operations in progress, as currently only
balance is prevented from running but other operations can trigger
relocation too (device shrinking and automatic chunk relocation on zoned
filesystems). Details are in the changelogs of the patches.

Filipe Manana (2):
  btrfs: ensure relocation never runs while we have send operations
    running
  btrfs: send: fix crash when memory allocations trigger reclaim

 fs/btrfs/block-group.c | 10 ++++++++--
 fs/btrfs/ctree.h       |  5 +++--
 fs/btrfs/disk-io.c     | 19 ++-----------------
 fs/btrfs/qgroup.c      |  8 +-------
 fs/btrfs/relocation.c  | 13 +++++++++++++
 fs/btrfs/send.c        | 12 +++++-------
 fs/btrfs/transaction.c |  3 ---
 fs/btrfs/transaction.h |  2 --
 fs/btrfs/volumes.c     |  8 --------
 9 files changed, 32 insertions(+), 48 deletions(-)

-- 
2.28.0


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

end of thread, other threads:[~2021-06-22 11:09 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-06-17 10:12 [PATCH 0/2] btrfs: fixes for send with relocation and reclaim fdmanana
2021-06-17 10:12 ` [PATCH 1/2] btrfs: ensure relocation never runs while we have send operations running fdmanana
2021-06-17 10:12 ` [PATCH 2/2] btrfs: send: fix crash when memory allocations trigger reclaim fdmanana
2021-06-21 10:10 ` [PATCH v2 0/2] btrfs: fixes for send with relocation and reclaim fdmanana
2021-06-21 10:10   ` [PATCH v2 1/2] btrfs: ensure relocation never runs while we have send operations running fdmanana
2021-06-22 11:06     ` David Sterba
2021-06-21 10:10   ` [PATCH v2 2/2] btrfs: send: fix crash when memory allocations trigger reclaim fdmanana
2021-06-22 11:07     ` David Sterba

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.