Re: [2.4] VFS locking problem during concurrent link/unlink

Nikita Danilov (Nikita@Namesys.COM)
Thu, 16 Jan 2003 19:06:36 +0300


Chris Mason writes:
> On Thu, 2003-01-16 at 10:43, Oleg Drokin wrote:

[...]

>
> link count at 1
> reiserfs_link: make new directory entry for link, schedule()
> reiserfs_unlink: dec link count to zero, remove file stat data
> reiserfs_link: inc link count, return thinking the stat data is still
> there

What protects ext2 from doing the same on the SMP?

>
> All of which leads to expanding chaos as we process this link pointing
> to nowhere but still have a valid in ram inode pointing to it.
>
> -chris

Nikita.

>
>
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/