Remove few references to simple_lock.
This commit is contained in:
parent
8c68626da1
commit
14a6291ecb
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: filecore_vfsops.c,v 1.65 2011/05/23 22:00:31 rmind Exp $ */
|
||||
/* $NetBSD: filecore_vfsops.c,v 1.66 2011/06/09 02:59:22 rmind Exp $ */
|
||||
|
||||
/*-
|
||||
* Copyright (c) 1994 The Regents of the University of California.
|
||||
@ -66,7 +66,7 @@
|
||||
*/
|
||||
|
||||
#include <sys/cdefs.h>
|
||||
__KERNEL_RCSID(0, "$NetBSD: filecore_vfsops.c,v 1.65 2011/05/23 22:00:31 rmind Exp $");
|
||||
__KERNEL_RCSID(0, "$NetBSD: filecore_vfsops.c,v 1.66 2011/06/09 02:59:22 rmind Exp $");
|
||||
|
||||
#if defined(_KERNEL_OPT)
|
||||
#include "opt_compat_netbsd.h"
|
||||
@ -216,9 +216,9 @@ filecore_mountroot(void)
|
||||
vfs_destroy(mp);
|
||||
return (error);
|
||||
}
|
||||
simple_lock(&mountlist_slock);
|
||||
mutex_enter(&mountlist_lock);
|
||||
CIRCLEQ_INSERT_TAIL(&mountlist, mp, mnt_list);
|
||||
simple_unlock(&mountlist_slock);
|
||||
mutex_exit(&mountlist_lock);
|
||||
(void)filecore_statvfs(mp, &mp->mnt_stat, p);
|
||||
vfs_unbusy(mp, false, NULL);
|
||||
return (0);
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: smbfs_subr.c,v 1.14 2007/06/30 09:37:57 pooka Exp $ */
|
||||
/* $NetBSD: smbfs_subr.c,v 1.15 2011/06/09 02:59:22 rmind Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 2000-2001, Boris Popov
|
||||
@ -35,7 +35,7 @@
|
||||
*/
|
||||
|
||||
#include <sys/cdefs.h>
|
||||
__KERNEL_RCSID(0, "$NetBSD: smbfs_subr.c,v 1.14 2007/06/30 09:37:57 pooka Exp $");
|
||||
__KERNEL_RCSID(0, "$NetBSD: smbfs_subr.c,v 1.15 2011/06/09 02:59:22 rmind Exp $");
|
||||
|
||||
#include <sys/param.h>
|
||||
#include <sys/systm.h>
|
||||
@ -268,11 +268,11 @@ smb_fphelp(struct mbchain *mbp, struct smb_vc *vcp, struct smbnode *np,
|
||||
struct smbnode **npp = smp->sm_npstack;
|
||||
int i, error = 0;
|
||||
|
||||
/* simple_lock(&smp->sm_npslock);*/
|
||||
/* mutex_enter(&smp->sm_npslock);*/
|
||||
i = 0;
|
||||
while (np->n_parent) {
|
||||
if (i++ == SMBFS_MAXPATHCOMP) {
|
||||
/* simple_unlock(&smp->sm_npslock);*/
|
||||
/* mutex_exit(&smp->sm_npslock);*/
|
||||
return ENAMETOOLONG;
|
||||
}
|
||||
*npp++ = np;
|
||||
@ -287,7 +287,7 @@ smb_fphelp(struct mbchain *mbp, struct smb_vc *vcp, struct smbnode *np,
|
||||
if (error)
|
||||
break;
|
||||
}
|
||||
/* simple_unlock(&smp->sm_npslock);*/
|
||||
/* mutex_exit(&smp->sm_npslock);*/
|
||||
return error;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user