]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
nfscl: Fix two more cases for forced dismount
authorRick Macklem <rmacklem@FreeBSD.org>
Fri, 5 Nov 2021 22:33:19 +0000 (15:33 -0700)
committerRick Macklem <rmacklem@FreeBSD.org>
Fri, 5 Nov 2021 22:33:19 +0000 (15:33 -0700)
commitf5d5164fb607ab9c51c52ace4ec241f6cac7cc5c
tree3452e72899775d0ec832017c9bfe258252aef9b5
parente2157cd0000f6dbb6465d7a885f2dcfd4d3596cb
nfscl: Fix two more cases for forced dismount

Although I was not able to cause a failure during testing, there
are places in nfscl_removedeleg() and nfscl_renamedeleg() where
I think a forced dismount could get hung.  This patch fixes those.

This patch only affects forced dismount and only if the NFSv4
server is issuing delegations to the client.

Found by code inspection.

MFC after: 2 weeks
sys/fs/nfsclient/nfs_clstate.c