Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/kern Oops - unintentional locking bit that's not yet ready.
details: https://anonhg.NetBSD.org/src/rev/5dd816701911
branches: trunk
changeset: 750330:5dd816701911
user: elad <elad%NetBSD.org@localhost>
date: Fri Dec 25 20:07:18 2009 +0000
description:
Oops - unintentional locking bit that's not yet ready.
diffstat:
sys/kern/kern_fileassoc.c | 9 ++-------
1 files changed, 2 insertions(+), 7 deletions(-)
diffs (45 lines):
diff -r 1ac5b3a996b7 -r 5dd816701911 sys/kern/kern_fileassoc.c
--- a/sys/kern/kern_fileassoc.c Fri Dec 25 20:05:43 2009 +0000
+++ b/sys/kern/kern_fileassoc.c Fri Dec 25 20:07:18 2009 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: kern_fileassoc.c,v 1.33 2009/12/25 20:05:43 elad Exp $ */
+/* $NetBSD: kern_fileassoc.c,v 1.34 2009/12/25 20:07:18 elad Exp $ */
/*-
* Copyright (c) 2006 Elad Efrat <elad%NetBSD.org@localhost>
@@ -28,7 +28,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: kern_fileassoc.c,v 1.33 2009/12/25 20:05:43 elad Exp $");
+__KERNEL_RCSID(0, "$NetBSD: kern_fileassoc.c,v 1.34 2009/12/25 20:07:18 elad Exp $");
#include "opt_fileassoc.h"
@@ -61,7 +61,6 @@
};
static LIST_HEAD(, fileassoc) fileassoc_list;
-static kmutex_t fileassoc_list_lock;
/* An entry in the per-mount hash table. */
struct fileassoc_file {
@@ -171,8 +170,6 @@
}
fileassoc_domain = specificdata_domain_create();
- mutex_init(&fileassoc_list_lock, MUTEX_DEFAULT, IPL_NONE);
-
return 0;
}
@@ -200,9 +197,7 @@
assoc->assoc_cleanup_cb = cleanup_cb;
assoc->assoc_key = key;
- mutex_enter(&fileassoc_list_lock);
LIST_INSERT_HEAD(&fileassoc_list, assoc, assoc_list);
- mutex_exit(&fileassoc_list_lock);
*result = assoc;
Home |
Main Index |
Thread Index |
Old Index