Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/external/bsd/common/include/linux Use a spinlock for com...
details: https://anonhg.NetBSD.org/src/rev/561fd7f0b19b
branches: trunk
changeset: 329077:561fd7f0b19b
user: skrll <skrll%NetBSD.org@localhost>
date: Mon May 05 15:59:11 2014 +0000
description:
Use a spinlock for completions. Makes vchiq pass LOCKDEBUG where other
spinlocks where held when trying to use the completion API.
diffstat:
sys/external/bsd/common/include/linux/completion.h | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diffs (18 lines):
diff -r ccdd368e45c8 -r 561fd7f0b19b sys/external/bsd/common/include/linux/completion.h
--- a/sys/external/bsd/common/include/linux/completion.h Mon May 05 15:45:32 2014 +0000
+++ b/sys/external/bsd/common/include/linux/completion.h Mon May 05 15:59:11 2014 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: completion.h,v 1.2 2014/04/01 15:19:37 riastradh Exp $ */
+/* $NetBSD: completion.h,v 1.3 2014/05/05 15:59:11 skrll Exp $ */
/*-
* Copyright (c) 2013 The NetBSD Foundation, Inc.
@@ -67,7 +67,7 @@
init_completion(struct completion *completion)
{
- mutex_init(&completion->c_lock, MUTEX_DEFAULT, IPL_NONE);
+ mutex_init(&completion->c_lock, MUTEX_DEFAULT, IPL_VM);
cv_init(&completion->c_cv, "lnxcmplt");
completion->c_done = 0;
}
Home |
Main Index |
Thread Index |
Old Index