[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <20241212-btrfs_need_stripe_tree_update-cleanups-v1-0-d842b6d8d02b@kernel.org>
Date: Thu, 12 Dec 2024 13:54:25 +0100
From: Johannes Thumshirn <jth@...nel.org>
To: Chris Mason <clm@...com>,
Josef Bacik <josef@...icpanda.com>,
David Sterba <dsterba@...e.com>
Cc: Johannes Thumshirn <jth@...nel.org>,
linux-btrfs@...r.kernel.org,
linux-kernel@...r.kernel.org,
Johannes Thumshirn <johannes.thjumshirn@....com>,
Johannes Thumshirn <johannes.thumshirn@....com>
Subject: [PATCH 0/3] btrfs: reduce repeated calls to btrfs_need_stripe_tree_update()
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@....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@...nel.org>
Powered by blists - more mailing lists