Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/kern add simple_locks that are missed in the previous.
details: https://anonhg.NetBSD.org/src/rev/7edbddefadad
branches: trunk
changeset: 546079:7edbddefadad
user: yamt <yamt%NetBSD.org@localhost>
date: Sun Apr 20 07:06:33 2003 +0000
description:
add simple_locks that are missed in the previous.
diffstat:
sys/kern/vfs_syscalls.c | 6 ++++--
1 files changed, 4 insertions(+), 2 deletions(-)
diffs (34 lines):
diff -r 1d073178210f -r 7edbddefadad sys/kern/vfs_syscalls.c
--- a/sys/kern/vfs_syscalls.c Sun Apr 20 04:42:15 2003 +0000
+++ b/sys/kern/vfs_syscalls.c Sun Apr 20 07:06:33 2003 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: vfs_syscalls.c,v 1.185 2003/04/16 21:44:21 christos Exp $ */
+/* $NetBSD: vfs_syscalls.c,v 1.186 2003/04/20 07:06:33 yamt Exp $ */
/*
* Copyright (c) 1989, 1993
@@ -41,7 +41,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: vfs_syscalls.c,v 1.185 2003/04/16 21:44:21 christos Exp $");
+__KERNEL_RCSID(0, "$NetBSD: vfs_syscalls.c,v 1.186 2003/04/20 07:06:33 yamt Exp $");
#include "opt_compat_netbsd.h"
#include "opt_compat_43.h"
@@ -798,6 +798,7 @@
if (sfsp && count < maxcount) {
error = dostatfs(mp, &sbuf, p, SCARG(uap, flags), 0);
if (error) {
+ simple_lock(&mountlist_slock);
nmp = CIRCLEQ_NEXT(mp, mnt_list);
vfs_unbusy(mp);
continue;
@@ -811,6 +812,7 @@
root |= strcmp(sbuf.f_mntonname, "/") == 0;
}
count++;
+ simple_lock(&mountlist_slock);
nmp = CIRCLEQ_NEXT(mp, mnt_list);
vfs_unbusy(mp);
}
Home |
Main Index |
Thread Index |
Old Index