nfscl: Purge name cache when readdir_plus is done
authorZaphrod Beeblebrox <zbeeble@gmail.com>
Thu, 11 Apr 2024 20:27:27 +0000 (13:27 -0700)
committerRick Macklem <rmacklem@FreeBSD.org>
Thu, 11 Apr 2024 20:27:27 +0000 (13:27 -0700)
commitd00c64bb2347cc620d31a178c7755aa7e594f065
tree11e283b68a9afbeeef264f76950ff708b97b20b3
parentb724c8292df5d12aa02a98da3466cde6eb5a6008
nfscl: Purge name cache when readdir_plus is done

The author reported that this patch was needed to avoid
crashes on a fairly busy RISC-V system.  The author did not
provide details w.r.t. the crashes.  Although I
have not seen any such crash, the patch looks reasonable
and I have not found any regressions when testing it.

Since "rdirplus" is not a default option, the patch is
only needed if you are doing NFS mounts with the "rdirplus"
mount option and seeing crashes related to the name cache.

MFC after: 1 week
sys/fs/nfsclient/nfs_clvnops.c