Either one, or both, it doesn't matter since the application has not
forced any serialization on this and can't assume any.
> BTW, how about file itself getting renamed during fsync()?
It doesn't matter. If the application wants to race that way, let it.
We're talking about ensuring access to the fsynced fd's inode.
> See the problem? And no, blocking all renames while fsync() happens
> is not an answer - it's a DoS.
We would have done our duty by fsyncing the inodes one at a time
working up the dentry chain towards the root, and not trying to lock
the whole chain. If something happens while we're doing that it's an
application race.
-- Daniel - 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/