[PATCH 0/3] btrfs: reduce repeated calls to btrfs_need_stripe_tree_update()

Johannes Thumshirn posted 3 patches 1 year ago
There is a newer version of this series
fs/btrfs/bio.c     |  3 +--
fs/btrfs/volumes.c | 17 ++++++++++-------
fs/btrfs/volumes.h |  2 ++
3 files changed, 13 insertions(+), 9 deletions(-)
[PATCH 0/3] btrfs: reduce repeated calls to btrfs_need_stripe_tree_update()
Posted by Johannes Thumshirn 1 year ago
When working on RST backed RAID56 I was looking for a way to plumb the "use
RST or not" decision into the bio submission code and this way found that
we can cache the return of btrfs_need_raid_stripe_tree_update() in the
btrfs_io_context (and btrfs_io_stripe) so there's no need to do multiple
lookups for the same I/O.

Signed-off-by: Johannes Thumshirn <johannes.thjumshirn@wdc.com>
---
Johannes Thumshirn (3):
      btrfs: cache stripe tree usage in io_geometry
      btrfs: cache RAID stripe tree decission in btrfs_io_context
      btrfs: pass btrfs_io_geometry to is_single_device_io

 fs/btrfs/bio.c     |  3 +--
 fs/btrfs/volumes.c | 17 ++++++++++-------
 fs/btrfs/volumes.h |  2 ++
 3 files changed, 13 insertions(+), 9 deletions(-)
---
base-commit: f7e8118a1c33aff911c3ce414d3e832eaba6b36d
change-id: 20241212-btrfs_need_stripe_tree_update-cleanups-166f5e7e894c

Best regards,
-- 
Johannes Thumshirn <jth@kernel.org>