Skip to content
Commit 9fe6e9e7 authored by Jan Kara's avatar Jan Kara Committed by Chuck Lever
Browse files

nfsd: Fix error cleanup path in nfsd_rename()

Commit a8b00268 ("rename(): avoid a deadlock in the case of parents
having no common ancestor") added an error bail out path. However this
path does not drop the remount protection that has been acquired. Fix
the cleanup path to properly drop the remount protection.

Fixes: a8b00268

 ("rename(): avoid a deadlock in the case of parents having no common ancestor")
Signed-off-by: default avatarJan Kara <jack@suse.cz>
Reviewed-by: default avatarJeff Layton <jlayton@kernel.org>
Acked-by: default avatarAl Viro <viro@zeniv.linux.org.uk>
Signed-off-by: default avatarChuck Lever <chuck.lever@oracle.com>
parent 9b350d3e
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment