nfscl: Move release of the clientID lock into nfscl_doclose()
authorRick Macklem <rmacklem@FreeBSD.org>
Sat, 16 Oct 2021 22:49:38 +0000 (15:49 -0700)
committerRick Macklem <rmacklem@FreeBSD.org>
Sat, 16 Oct 2021 22:49:38 +0000 (15:49 -0700)
commite2aab5e2d73486aa76bb861d583bbce021661601
treee22402a6c10f04b1c0772544cc6b59851fe7b1c9
parent79239b5b47540d64ffd1e1226f0d12d49df339c1
nfscl: Move release of the clientID lock into nfscl_doclose()

This patch moves release of the shared clientID lock from nfsrpc_close()
just after the nfscl_doclose() call to the end of nfscl_doclose() call.
This does make the code cleaner, since the shared lock is acquired at
the beginning of nfscl_doclose().  The only semantics change is that
the code no longer drops and reaquires the NFSCLSTATELOCK() mutex,
which I do not believe will have a negative effect on the NFSv4 client.

This is being done to prepare the code for a future patch that fixes
the case where an NFSv4.1/4.2 server replies NFSERR_DELAY to a Close
operation.

MFC after: 2 week
sys/fs/nfsclient/nfs_clrpcops.c
sys/fs/nfsclient/nfs_clstate.c