Rick Macklem f6fec55fe3 nfscl: add check for NULL clp and forced dismounts to nfscl_delegreturnvp()
Commit aad780464fad added a function called nfscl_delegreturnvp()
to return delegations during the NFS VOP_RECLAIM().
The function erroneously assumed that nm_clp would
be non-NULL. It will be NULL for NFSV4.0 mounts until
a regular file is opened. It will also be NULL during
vflush() in nfs_unmount() for a forced dismount.

This patch adds a check for clp == NULL to fix this.

Also, since it makes no sense to call nfscl_delegreturnvp()
during a forced dismount, the patch adds a check for that
case and does not do the call during forced dismounts.

PR:	255436
Reported by:	ish@amail.plala.or.jp
MFC after:	2 weeks
2021-04-27 17:30:16 -07:00
..
2021-01-02 19:57:58 -07:00
2021-04-27 19:03:16 +02:00
2021-01-15 20:09:55 +01:00
2021-04-07 14:33:02 -04:00
2021-04-02 15:41:51 +03:00
2021-03-17 06:16:31 +11:00
2021-03-17 06:16:31 +11:00
2021-04-15 15:47:42 +03:00
2021-04-13 17:42:20 -04:00