Re: [PATCH] btrfs: do not skip re-registration for the mounted device

Anand Jain
2024-02-13T00:36:12Z

On 2/12/24 20:29, David Sterba wrote:
> On Mon, Feb 05, 2024 at 07:45:05PM +0800, Anand Jain wrote:
>> We skip device registration for a single device. However, we do not do
>> that if the device is already mounted, as it might be coming in again
>> for scanning a different path.
>>
>> This patch is lightly tested; for verification if it fixes.
>>
>> Signed-off-by: Anand Jain <anand.jain@oracle.com>
>> ---

>> I still have some unknowns about the problem. Pls test if this fixes
>> the problem.

It is a mystery- we didn't see
"BTRFS: skip registering single non-seed device %s\n",
in the kernel messages.

Do you have any clue?

> Seems that we have that tested by some reportes, I checked it in my VM
> setup that it works (fstests and grub2-probe) so let's add it to
> for-next. Please use the changelog from my patch that describes the
> problem and then add description of how you fixed it. Thanks.

Thxs for the verification. I'll revise, send out.

Thx, Anand