Re: d_op->d_delete race problem

Bill Hawes (whawes@star.net)
Mon, 22 Sep 1997 12:55:12 -0400


Linus Torvalds wrote:
> No, if you have that problem then you have a bug in the low-level
> filesystem: the delete function is supposed to unhash the thing before
> blocking if it is deleted. See the NFS code, which does this correctly.

In smbfs I don't want to unhash the dentry, I just want to use the
d_delete operation to close the filehandle. The intent is to let the
VFS layer take care of file cacheing. When the file is reused, the file
is opened again and the inode revalidated.

Regards,
Bill