From 9a702b271591ff8d015cccf6157ae36a9f15b395 Mon Sep 17 00:00:00 2001 From: Matthew Dillon Date: Wed, 15 Jul 2009 23:46:07 -0700 Subject: [PATCH] NFS - install nfsmount on nfs_mountq, for timeout handling. * This way the timeout callout can find all the requests. --- sys/vfs/nfs/nfs_vfsops.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/sys/vfs/nfs/nfs_vfsops.c b/sys/vfs/nfs/nfs_vfsops.c index 7a2a45e464..04f68d7ce3 100644 --- a/sys/vfs/nfs/nfs_vfsops.c +++ b/sys/vfs/nfs/nfs_vfsops.c @@ -995,6 +995,7 @@ mountnfs(struct nfs_args *argp, struct mount *mp, struct sockaddr *nam, * Lose the lock but keep the ref. */ vn_unlock(*vpp); + TAILQ_INSERT_TAIL(&nfs_mountq, nmp, nm_entry); return (0); bad: @@ -1049,6 +1050,7 @@ nfs_unmount(struct mount *mp, int mntflags) nfs_disconnect(nmp); FREE(nmp->nm_nam, M_SONAME); + TAILQ_REMOVE(&nfs_mountq, nmp, nm_entry); if ((nmp->nm_flag & NFSMNT_KERB) == 0) nfs_free_mount(nmp); -- 2.41.0