All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 00/28] btrfs: some small optimizations around space_info locking and cleanups
@ 2025-10-23 15:59 fdmanana
  2025-10-23 15:59 ` [PATCH 01/28] btrfs: return real error when failing tickets in maybe_fail_all_tickets() fdmanana
                   ` (28 more replies)
  0 siblings, 29 replies; 41+ messages in thread
From: fdmanana @ 2025-10-23 15:59 UTC (permalink / raw)
  To: linux-btrfs

From: Filipe Manana <fdmanana@suse.com>

Several optimizations to reduce critical sections delimited by a
space_info's spinlock and several cleanups mostly arround space
reservation and flushing. Details in the changelogs.

Filipe Manana (28):
  btrfs: return real error when failing tickets in maybe_fail_all_tickets()
  btrfs: avoid recomputing used space in btrfs_try_granting_tickets()
  btrfs: make btrfs_can_overcommit() return bool instead of int
  btrfs: avoid used space computation when trying to grant tickets
  btrfs: avoid used space computation when reserving space
  btrfs: inline btrfs_space_info_used()
  btrfs: bail out earlier from need_preemptive_reclaim() if we have tickets
  btrfs: increment loop count outside critical section during metadata reclaim
  btrfs: shorten critical section in btrfs_preempt_reclaim_metadata_space()
  btrfs: avoid unnecessary reclaim calculation in priority_reclaim_metadata_space()
  btrfs: assert space_info is locked in steal_from_global_rsv()
  btrfs: assign booleans to global reserve's full field
  btrfs: process ticket outside global reserve critical section
  btrfs: remove double underscore prefix from __reserve_bytes()
  btrfs: reduce space_info critical section in btrfs_chunk_alloc()
  btrfs: reduce block group critical section in btrfs_free_reserved_bytes()
  btrfs: reduce block group critical section in btrfs_add_reserved_bytes()
  btrfs: reduce block group critical section in do_trimming()
  btrfs: reduce block group critical section in pin_down_extent()
  btrfs: use local variable for space_info in pin_down_extent()
  btrfs: remove 'reserved' argument from btrfs_pin_extent()
  btrfs: change 'reserved' argument from pin_down_extent() to bool
  btrfs: reduce block group critical section in unpin_extent_range()
  btrfs: remove pointless label and goto from unpin_extent_range()
  btrfs: add data_race() in btrfs_account_ro_block_groups_free_space()
  btrfs: move ticket wakeup and finalization to remove_ticket()
  btrfs: avoid space_info locking when checking if tickets are served
  btrfs: tag as unlikely fs aborted checks in space flushing code

 fs/btrfs/block-group.c      |  41 +++---
 fs/btrfs/extent-tree.c      |  72 ++++++-----
 fs/btrfs/extent-tree.h      |   3 +-
 fs/btrfs/free-space-cache.c |  20 +--
 fs/btrfs/space-info.c       | 243 +++++++++++++++++++-----------------
 fs/btrfs/space-info.h       |  18 ++-
 6 files changed, 219 insertions(+), 178 deletions(-)

-- 
2.47.2


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

end of thread, other threads:[~2025-11-06 12:05 UTC | newest]

Thread overview: 41+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-10-23 15:59 [PATCH 00/28] btrfs: some small optimizations around space_info locking and cleanups fdmanana
2025-10-23 15:59 ` [PATCH 01/28] btrfs: return real error when failing tickets in maybe_fail_all_tickets() fdmanana
2025-10-23 15:59 ` [PATCH 02/28] btrfs: avoid recomputing used space in btrfs_try_granting_tickets() fdmanana
2025-10-23 15:59 ` [PATCH 03/28] btrfs: make btrfs_can_overcommit() return bool instead of int fdmanana
2025-10-23 15:59 ` [PATCH 04/28] btrfs: avoid used space computation when trying to grant tickets fdmanana
2025-10-23 15:59 ` [PATCH 05/28] btrfs: avoid used space computation when reserving space fdmanana
2025-10-23 15:59 ` [PATCH 06/28] btrfs: inline btrfs_space_info_used() fdmanana
2025-10-24  6:52   ` Johannes Thumshirn
2025-10-24  7:55     ` Filipe Manana
2025-10-23 15:59 ` [PATCH 07/28] btrfs: bail out earlier from need_preemptive_reclaim() if we have tickets fdmanana
2025-10-23 15:59 ` [PATCH 08/28] btrfs: increment loop count outside critical section during metadata reclaim fdmanana
2025-10-23 15:59 ` [PATCH 09/28] btrfs: shorten critical section in btrfs_preempt_reclaim_metadata_space() fdmanana
2025-10-23 15:59 ` [PATCH 10/28] btrfs: avoid unnecessary reclaim calculation in priority_reclaim_metadata_space() fdmanana
2025-10-24  7:06   ` Johannes Thumshirn
2025-10-24  7:55     ` Filipe Manana
2025-10-23 15:59 ` [PATCH 11/28] btrfs: assert space_info is locked in steal_from_global_rsv() fdmanana
2025-10-23 15:59 ` [PATCH 12/28] btrfs: assign booleans to global reserve's full field fdmanana
2025-10-23 15:59 ` [PATCH 13/28] btrfs: process ticket outside global reserve critical section fdmanana
2025-10-23 15:59 ` [PATCH 14/28] btrfs: remove double underscore prefix from __reserve_bytes() fdmanana
2025-10-23 15:59 ` [PATCH 15/28] btrfs: reduce space_info critical section in btrfs_chunk_alloc() fdmanana
2025-10-23 15:59 ` [PATCH 16/28] btrfs: reduce block group critical section in btrfs_free_reserved_bytes() fdmanana
2025-10-23 15:59 ` [PATCH 17/28] btrfs: reduce block group critical section in btrfs_add_reserved_bytes() fdmanana
2025-10-23 15:59 ` [PATCH 18/28] btrfs: reduce block group critical section in do_trimming() fdmanana
2025-10-24  7:19   ` Johannes Thumshirn
2025-10-24  8:00     ` Filipe Manana
2025-10-23 15:59 ` [PATCH 19/28] btrfs: reduce block group critical section in pin_down_extent() fdmanana
2025-10-24  7:21   ` Johannes Thumshirn
2025-10-24  8:02     ` Filipe Manana
2025-10-23 15:59 ` [PATCH 20/28] btrfs: use local variable for space_info " fdmanana
2025-10-23 15:59 ` [PATCH 21/28] btrfs: remove 'reserved' argument from btrfs_pin_extent() fdmanana
2025-10-23 15:59 ` [PATCH 22/28] btrfs: change 'reserved' argument from pin_down_extent() to bool fdmanana
2025-10-23 15:59 ` [PATCH 23/28] btrfs: reduce block group critical section in unpin_extent_range() fdmanana
2025-10-23 15:59 ` [PATCH 24/28] btrfs: remove pointless label and goto from unpin_extent_range() fdmanana
2025-10-23 15:59 ` [PATCH 25/28] btrfs: add data_race() in btrfs_account_ro_block_groups_free_space() fdmanana
2025-10-23 15:59 ` [PATCH 26/28] btrfs: move ticket wakeup and finalization to remove_ticket() fdmanana
2025-10-23 16:00 ` [PATCH 27/28] btrfs: avoid space_info locking when checking if tickets are served fdmanana
2025-10-24  7:29   ` Johannes Thumshirn
2025-11-06 11:29   ` Daniel Vacek
2025-11-06 12:05     ` Filipe Manana
2025-10-23 16:00 ` [PATCH 28/28] btrfs: tag as unlikely fs aborted checks in space flushing code fdmanana
2025-10-24  7:30 ` [PATCH 00/28] btrfs: some small optimizations around space_info locking and cleanups Johannes Thumshirn

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.