Re: [PATCH] btrfs: relax dev_replace rwsem usage on scrub with rst
From: Johannes Thumshirn
Date: Wed Aug 14 2024 - 09:08:26 EST
On 14.08.24 14:46, Johannes Thumshirn wrote:
> + if (rst && dev_replace_is_ongoing)
> + up_read(&dev_replace->rwsem);
> for (int i = 0; i < io_geom.num_stripes; i++) {
> ret = set_io_stripe(fs_info, logical, length,
> &bioc->stripes[i], map, &io_geom);
> +
> if (ret < 0)
> break;
> io_geom.stripe_index++;
> }
That stray newline was added by accident, I'll remove it if there's a
need for a v2 or when applying.