Re: [PATCH] fs: fix possible inconsistent mount device

From: Christoph Hellwig
Date: Sat Aug 13 2022 - 02:48:51 EST


On Sat, Aug 13, 2022 at 02:08:48PM +0800, Yu Kuai wrote:
> From: Yu Kuai <yukuai3@xxxxxxxxxx>
>
> If device support rename, for example dm, following concurrent scenario
> is possible:

The fix is easy: don't rename mounted block device, and even
bettersimply don't rename them at all, which is just causing huge
amounts of pain.