public inbox for linux-btrfs@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH v3 0/2] btrfs: fix size class loading logic
@ 2023-02-15 20:59 Boris Burkov
  2023-02-15 20:59 ` [PATCH v3 1/2] btrfs: add size class stats to sysfs Boris Burkov
  2023-02-15 20:59 ` [PATCH v3 2/2] btrfs: fix size class loading logic Boris Burkov
  0 siblings, 2 replies; 5+ messages in thread
From: Boris Burkov @ 2023-02-15 20:59 UTC (permalink / raw)
  To: linux-btrfs, kernel-team

Unfortunately, this code needs another fixup, as Filipe discovered that
the fixup's use of search_forward caused a deadlock with a thread
holding the tree root lock and blocked on caching.

---
Changelog:
V3: move to btrfs_for_each_slot, drop contention checking logic. Sysfs
patch holds groups sem, but releases it between raid loops if it is
contended, matching the behavior of the raid_bytes file.
V2: just organizational changes to how the original fixup was sent

Boris Burkov (2):
  btrfs: add size class stats to sysfs
  btrfs: fix size class loading logic

 fs/btrfs/block-group.c | 42 +++++++++++++++-------------------------
 fs/btrfs/sysfs.c       | 44 ++++++++++++++++++++++++++++++++++++++++++
 2 files changed, 60 insertions(+), 26 deletions(-)

-- 
2.38.1


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

end of thread, other threads:[~2023-02-20 19:48 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-02-15 20:59 [PATCH v3 0/2] btrfs: fix size class loading logic Boris Burkov
2023-02-15 20:59 ` [PATCH v3 1/2] btrfs: add size class stats to sysfs Boris Burkov
2023-02-20 19:40   ` David Sterba
2023-02-15 20:59 ` [PATCH v3 2/2] btrfs: fix size class loading logic Boris Burkov
2023-02-20 19:42   ` David Sterba

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