Module Name: src
Committed By: elad
Date: Fri Dec 25 20:07:18 UTC 2009
Modified Files:
src/sys/kern: kern_fileassoc.c
Log Message:
Oops - unintentional locking bit that's not yet ready.
To generate a diff of this commit:
cvs rdiff -u -r1.33 -r1.34 src/sys/kern/kern_fileassoc.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/sys/kern/kern_fileassoc.c
diff -u src/sys/kern/kern_fileassoc.c:1.33 src/sys/kern/kern_fileassoc.c:1.34
--- src/sys/kern/kern_fileassoc.c:1.33 Fri Dec 25 20:05:43 2009
+++ src/sys/kern/kern_fileassoc.c Fri Dec 25 20:07:18 2009
@@ -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 <[email protected]>
@@ -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;