Re: [PATCH 1/2] btrfs: zoned: use rcu list for iterating devices to collect stats

From: Naohiro Aota
Date: Mon Jan 22 2024 - 07:12:49 EST


On Mon, Jan 22, 2024 at 02:51:03AM -0800, Johannes Thumshirn wrote:
> As btrfs_zoned_should_reclaim only has to iterate the device list in order
> to collect stats on the device's total and used bytes, we don't need to
> take the full blown mutex, but can iterate the device list in a rcu_read
> context.
>
> Signed-off-by: Johannes Thumshirn <johannes.thumshirn@xxxxxxx>

Looks good.

Reviewed-by: Naohiro Aota <naohiro.aota@xxxxxxx>