[lkml]   [2005]   [Oct]   [7]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
SubjectRe: [RFC] atomic create+open
fr den 07.10.2005 Klokka 15:59 (+0200) skreiv Miklos Szeredi:

> You can replace the inode in ->create_open() if you want to.

Thinking a bit more clearly after a cup of coffee. This statement isn't
even true.

Your pseudo-code offers no guarantees that you are the sole user of the
dentry once you get to create_open().

> Or let the VFS redo the lookup (as if d_revalidate() returned 0).

Which may return yet another result for the dentry and another race.
There is no guarantee that you will ever make progress if someone is
doing something like.

while true
echo "1" > foo
echo "2" > foo

on the server.


To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to
More majordomo info at
Please read the FAQ at

 \ /
  Last update: 2005-10-07 17:16    [W:0.108 / U:13.700 seconds]
©2003-2018 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site