All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/3] btrfs-progs: enhance error handling for metadata writeback
@ 2022-09-23 11:59 Qu Wenruo
  2022-09-23 11:59 ` [PATCH 1/3] btrfs-progs: remove unused function extent_io_tree_init_cache_max() Qu Wenruo
                   ` (3 more replies)
  0 siblings, 4 replies; 5+ messages in thread
From: Qu Wenruo @ 2022-09-23 11:59 UTC (permalink / raw)
  To: linux-btrfs

Christoph Anton Mitterer reported a crash if we try to call "btrfs check
--clear-space-cache v2" on a block device which is set read-only by
"blockdev --setro".

For such blockdevice, open() with O_RDWR won't report error immediately,
but only return error when we write to do any writes.

So what we can do is to enhance the error handling of metadata writeback
during transaction commit.

The first 2 patches are cleanups/fixes I exposed during the development.
The last one is the main disk for the fix.

Qu Wenruo (3):
  btrfs-progs: remove unused function extent_io_tree_init_cache_max()
  btrfs-progs: remove duplicated leakde extent buffer reporst
  btrfs-progs: properly handle write error when writing back tree blocks

 kernel-shared/extent_io.c   | 14 ++++++--------
 kernel-shared/extent_io.h   |  2 --
 kernel-shared/transaction.c | 33 +++++++++++++++++++++++++++++++--
 3 files changed, 37 insertions(+), 12 deletions(-)

-- 
2.37.3


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

end of thread, other threads:[~2022-09-27 15:19 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-09-23 11:59 [PATCH 0/3] btrfs-progs: enhance error handling for metadata writeback Qu Wenruo
2022-09-23 11:59 ` [PATCH 1/3] btrfs-progs: remove unused function extent_io_tree_init_cache_max() Qu Wenruo
2022-09-23 11:59 ` [PATCH 2/3] btrfs-progs: remove duplicated leakde extent buffer reporst Qu Wenruo
2022-09-23 11:59 ` [PATCH 3/3] btrfs-progs: properly handle write error when writing back tree blocks Qu Wenruo
2022-09-27 15:13 ` [PATCH 0/3] btrfs-progs: enhance error handling for metadata writeback 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.