Use nfs4_disconnect for connections opened with nfs4_connect.

Submitted by:	cel@citi.umich.edu
MFC after:	1 week
This commit is contained in:
Jim Rees 2006-01-19 22:48:31 +00:00
parent 0ebb41bef5
commit c1f097baba

View File

@ -652,7 +652,7 @@ mountnfs(struct nfs_args *argp, struct mount *mp, struct sockaddr *nam,
if (mrep != NULL)
m_freem(mrep);
bad:
nfs_disconnect(nmp);
nfs4_disconnect(nmp);
uma_zfree(nfsmount_zone, nmp);
FREE(nam, M_SONAME);
@ -692,7 +692,7 @@ nfs_unmount(struct mount *mp, int mntflags, struct thread *td)
/*
* We are now committed to the unmount.
*/
nfs_disconnect(nmp);
nfs4_disconnect(nmp);
FREE(nmp->nm_nam, M_SONAME);
/* XXX there's a race condition here for SMP */