Re: [PATCH] btrfs: relax dev_replace rwsem usage on scrub with rst
From: Johannes Thumshirn
Date: Wed Aug 14 2024 - 10:16:18 EST
On 14.08.24 16:14, Filipe Manana wrote:
> I would suggest a different fix:
>
> Make the device replace code store a pointer (or pid) of to the task
> running device replace, and at btrfs_map_block() don't take the
> semaphore if "current" matches that pointer/pid.
>
> Wouldn't that work? Seems safe and simple to me.
>
Hmm that could work, let me see.