]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Change nfs_advlock() so that the NFSVOPUNLOCK() is mostly done at the end.
authorrmacklem <rmacklem@FreeBSD.org>
Tue, 6 Nov 2018 22:50:50 +0000 (22:50 +0000)
committerrmacklem <rmacklem@FreeBSD.org>
Tue, 6 Nov 2018 22:50:50 +0000 (22:50 +0000)
commit0c7244bebadb827d67ba87544b607ea5acaacbab
tree21552e34124b1030f5ace21411ce99d479a81158
parent5eb6ee13ac3bc0762acab599c04bc8633c7365bb
Change nfs_advlock() so that the NFSVOPUNLOCK() is mostly done at the end.

Prior to this patch, nfs_advlock() did NFSVOPUNLOCK(); return (error);
in many places. This patch replaces these code sequenences with a "goto out;"
and does the NFSVOPUNLOCK(); return (error); at the end of the function
in order to make the vnode locking simpler.
This patch does not change the semantics of nfs_advlock().

Suggested by: kib
Reviewed by: kib
Differential Revision: https://reviews.freebsd.org/D17853
sys/fs/nfsclient/nfs_clvnops.c