From: Trond Myklebust Date: Fri, 30 Aug 2013 16:24:25 +0000 (-0400) Subject: NFS: Ensure that rmdir() waits for sillyrenames to complete X-Git-Tag: v3.12-rc1~87^2~40 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ba6c05928dcafc7e0a0c8e4ee6a293ba47190fd4;p=pandora-kernel.git 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: Trond Myklebust --- Reading git-diff-tree failed