Linux Btrfs filesystem development
 help / color / mirror / Atom feed
* [PATCH 0/2] btrfs: fixes for the 13 subpage preparation patches
@ 2021-05-18  1:41 Qu Wenruo
  2021-05-18  1:41 ` [PATCH 1/2] btrfs: fix the never finishing ordered extent when it get cleaned up Qu Wenruo
  2021-05-18  1:41 ` [PATCH 2/2] btrfs: fix the unsafe access in btrfs_lookup_first_ordered_range() Qu Wenruo
  0 siblings, 2 replies; 3+ messages in thread
From: Qu Wenruo @ 2021-05-18  1:41 UTC (permalink / raw)
  To: linux-btrfs

Although Ritesh and Goldwyn were both testing full subpage patches and
got pretty good results, our awesome maintainer David still found some
crashes:

- btrfs/125 hang on x86
  This test case is not in auto group, and for subpage case we reject
  RAID56 thus it doesn't trigger the crash.
  It's a behavior change in page Ordered (private2) cleanup sequence.
  We can no longer cleanup Private2 and then finish ordered extent.
  We have to do them in the same run, or later
  btrfs_mark_ordered_io_finished() will skip pages without Ordered bit,
  and causing the hang.

  This needs a dedicated fix, but it's still pretty small, and won't
  affect normal routines.

- generic/521 random crash on x86
  Which I can't reproduce, but according to the dying message, it's not
  hard to find the problem.
  An assignment out of the protection of spinlock.
  This small fix can be folded into patch "btrfs: introduce
  btrfs_lookup_first_ordered_range()"

Qu Wenruo (2):
  btrfs: fix the never finishing ordered extent when it get cleaned up
  btrfs: fix the unsafe access in btrfs_lookup_first_ordered_range()

 fs/btrfs/inode.c        | 20 ++++++++++++++++++++
 fs/btrfs/ordered-data.c |  3 ++-
 2 files changed, 22 insertions(+), 1 deletion(-)

-- 
2.31.1


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

end of thread, other threads:[~2021-05-18  1:42 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2021-05-18  1:41 [PATCH 0/2] btrfs: fixes for the 13 subpage preparation patches Qu Wenruo
2021-05-18  1:41 ` [PATCH 1/2] btrfs: fix the never finishing ordered extent when it get cleaned up Qu Wenruo
2021-05-18  1:41 ` [PATCH 2/2] btrfs: fix the unsafe access in btrfs_lookup_first_ordered_range() Qu Wenruo

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