Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/external/bsd/drm2/linux linux: Use IPL_VM for lock insid...
details: https://anonhg.NetBSD.org/src/rev/3b192e349e04
branches: trunk
changeset: 1028575:3b192e349e04
user: riastradh <riastradh%NetBSD.org@localhost>
date: Sun Dec 19 11:21:38 2021 +0000
description:
linux: Use IPL_VM for lock inside rw_semaphore.
down_read_trylock needs to work under a spin lock.
diffstat:
sys/external/bsd/drm2/linux/linux_rwsem.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diffs (27 lines):
diff -r 97c6e9a4c647 -r 3b192e349e04 sys/external/bsd/drm2/linux/linux_rwsem.c
--- a/sys/external/bsd/drm2/linux/linux_rwsem.c Sun Dec 19 11:21:30 2021 +0000
+++ b/sys/external/bsd/drm2/linux/linux_rwsem.c Sun Dec 19 11:21:38 2021 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: linux_rwsem.c,v 1.1 2021/12/19 11:21:30 riastradh Exp $ */
+/* $NetBSD: linux_rwsem.c,v 1.2 2021/12/19 11:21:38 riastradh Exp $ */
/*-
* Copyright (c) 2021 The NetBSD Foundation, Inc.
@@ -27,7 +27,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: linux_rwsem.c,v 1.1 2021/12/19 11:21:30 riastradh Exp $");
+__KERNEL_RCSID(0, "$NetBSD: linux_rwsem.c,v 1.2 2021/12/19 11:21:38 riastradh Exp $");
#include <sys/types.h>
@@ -45,7 +45,7 @@
init_rwsem(struct rw_semaphore *rwsem)
{
- mutex_init(&rwsem->rws_lock, MUTEX_DEFAULT, IPL_NONE);
+ mutex_init(&rwsem->rws_lock, MUTEX_DEFAULT, IPL_VM);
cv_init(&rwsem->rws_cv, "lnxrwsem");
rwsem->rws_writer = NULL;
rwsem->rws_readers = 0;
Home |
Main Index |
Thread Index |
Old Index