Re: [PATCH] nfs_unlink() race (was: nfs_refresh_inode: inode number mismatch)

Trond Myklebust (trond.myklebust@fys.uio.no)
Tue, 10 Jun 2003 02:01:26 +0200


>>>>> " " == Frank Cusack <fcusack@fcusack.com> writes:

> On Mon, Jun 09, 2003 at 06:40:43PM +0200, Trond Myklebust
> wrote:
>> If people prefer 'rm -rf' correctness instead of
>> unlinked-but-open, then we could do that by changing the
>> behaviour of 'unlink' on a silly-deleted filed. Currently it
>> returns EBUSY, but we could just as well have it complete the
>> unlink, and mark the inode as being stale...

> Actually, *currently* it unlinks. :-) That's the problem.

No. The problem is that it aliases the dentry, and so it unlinks
incorrectly...

Cheers,
Trond
-
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/