Re: [PATCH 08/11] VFS: add inode_dir_lock/unlock

From: Hillf Danton
Date: Mon Dec 23 2024 - 06:13:18 EST


On Mon, 23 Dec 2024 14:10:07 +1100 NeilBrown <neilb@xxxxxxx>
> On Sat, 21 Dec 2024, Hillf Danton wrote:
> > Inventing anything like mutex sounds bad.
>
> In general I would agree. But when the cost of adding a mutex exceeds
> the cost of using an alternate solution that only requires 2 bits, I
> think the alternate solution is justified.
>
Inode deserves more than the 2 bits before such a solution is able to
rework mutex.