]> git.proxmox.com Git - mirror_ubuntu-eoan-kernel.git/commit
nfsd: break lease on unlink due to rename
authorJ. Bruce Fields <bfields@redhat.com>
Sun, 6 Feb 2011 21:46:30 +0000 (16:46 -0500)
committerJ. Bruce Fields <bfields@redhat.com>
Mon, 14 Feb 2011 15:35:19 +0000 (10:35 -0500)
commit83f6b0c18204f68961f58b9f69e5dba0d36056a2
tree87d08d398b61bee64a2ebc5a538f57f752c6c0d9
parentacfdf5c383b38f7f4dddae41b97c97f1ae058f49
nfsd: break lease on unlink due to rename

4795bb37effb7b8fe77e2d2034545d062d3788a8 "nfsd: break lease on unlink,
link, and rename", only broke the lease on the file that was being
renamed, and didn't handle the case where the target path refers to an
already-existing file that will be unlinked by a rename--in that case
the target file should have any leases broken as well.

Signed-off-by: J. Bruce Fields <bfields@redhat.com>
fs/nfsd/vfs.c