All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/5] btrfs: fix transaction leaks and crashes during unmount
@ 2020-12-14 10:10 fdmanana
  2020-12-14 10:10 ` [PATCH 1/5] btrfs: fix transaction leak and crash after RO remount caused by qgroup rescan fdmanana
                   ` (6 more replies)
  0 siblings, 7 replies; 13+ messages in thread
From: fdmanana @ 2020-12-14 10:10 UTC (permalink / raw)
  To: linux-btrfs

From: Filipe Manana <fdmanana@suse.com>

There are some cases where we can leak a transaction and crash during unmount
after remounting the filesystem in RO mode or mounting RO. These issues were
actually being hit by automated tests from the openQA for openSUSE Tumbleweed
(bugzilla https://bugzilla.suse.com/show_bug.cgi?id=1164503).

Filipe Manana (5):
  btrfs: fix transaction leak and crash after RO remount caused by
    qgroup rescan
  btrfs: fix transaction leak and crash after cleaning up orphans on RO
    mount
  btrfs: fix race between RO remount and the cleaner task
  btrfs: add assertion for empty list of transactions at late stage of
    umount
  btrfs: run delayed iputs when remounting RO to avoid leaking them

 fs/btrfs/ctree.h   | 20 +++++++++++++++++++-
 fs/btrfs/disk-io.c | 13 ++++++++-----
 fs/btrfs/qgroup.c  | 13 ++++++++++---
 fs/btrfs/super.c   | 40 +++++++++++++++++++++++++++++++++++++---
 fs/btrfs/volumes.c |  4 ++--
 5 files changed, 76 insertions(+), 14 deletions(-)

-- 
2.28.0


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

end of thread, other threads:[~2021-03-16 16:57 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-12-14 10:10 [PATCH 0/5] btrfs: fix transaction leaks and crashes during unmount fdmanana
2020-12-14 10:10 ` [PATCH 1/5] btrfs: fix transaction leak and crash after RO remount caused by qgroup rescan fdmanana
2020-12-17 17:44   ` David Sterba
2020-12-17 18:21     ` Filipe Manana
2020-12-14 10:10 ` [PATCH 2/5] btrfs: fix transaction leak and crash after cleaning up orphans on RO mount fdmanana
2021-03-16  6:44   ` robbieko
2021-03-16 11:43     ` Filipe Manana
2021-03-16 16:56       ` Filipe Manana
2020-12-14 10:10 ` [PATCH 3/5] btrfs: fix race between RO remount and the cleaner task fdmanana
2020-12-14 10:10 ` [PATCH 4/5] btrfs: add assertion for empty list of transactions at late stage of umount fdmanana
2020-12-14 10:10 ` [PATCH 5/5] btrfs: run delayed iputs when remounting RO to avoid leaking them fdmanana
2020-12-17 16:26 ` [PATCH 0/5] btrfs: fix transaction leaks and crashes during unmount Josef Bacik
2020-12-17 18:08 ` 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.