Skip to content
Snippets Groups Projects
Commit ba6c0592 authored by Trond Myklebust's avatar Trond Myklebust
Browse files

NFS: Ensure that rmdir() waits for sillyrenames to complete


If an NFS client does

	mkdir("dir");
	fd = open("dir/file");
	unlink("dir/file");
	close(fd);
	rmdir("dir");

then the asynchronous nature of the sillyrename operation means that
we can end up getting EBUSY for the rmdir() in the above test. Fix
that by ensuring that we wait for any in-progress sillyrenames
before sending the rmdir() to the server.

Signed-off-by: default avatarTrond Myklebust <Trond.Myklebust@netapp.com>
parent a5250def
No related branches found
No related tags found
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment