Re: [PATCH] [RFC] remove ext3 inode from orphan list when link andunlink race

From: Eric Sandeen
Date: Fri Jan 12 2007 - 16:48:38 EST


Alex Tomas wrote:
>>>>>> Eric Sandeen (ES) writes:
>
> ES> so I think it's possible that link can sneak in there & find it after
> ES> the mutex is dropped...? Is this ok? :) It's certainly -happening-
> ES> anyway....
>
> yes, but it shouldn't allow to re-link such inode back, IMHO.
> a filesystem may start some non-revertable activity in its
> unlink method.
>
> thanks, Alex

I tend to agree, chatting w/ Al I think he does too. :) I'll test
a patch that kicks out ext3_link() with -ENOENT at the top, and resubmit
that if things go well.

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