Re: [PATCH 1/2] ext4: Fix use-after-free about sbi->s_mmp_tsk

From: Theodore Ts'o
Date: Mon Jul 05 2021 - 16:35:48 EST


On Mon, Jul 05, 2021 at 01:15:48PM +0200, Jan Kara wrote:
>
> That being said for this scheme spinlock is enough, you don't need a mutex
> for s_mmp_lock.

I think we can solve this without using using either a spinlock or a
mutex, and it's a smaller and simpler patch as a result. (This is the
-v2 version of this patch, which removes an unused label compared to
the earlier version.)