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 drm/linux_ww_mutex: Fix ww acqui...
details: https://anonhg.NetBSD.org/src/rev/06755fcd1afe
branches: trunk
changeset: 378331:06755fcd1afe
user: riastradh <riastradh%NetBSD.org@localhost>
date: Sat Jul 29 23:50:03 2023 +0000
description:
drm/linux_ww_mutex: Fix ww acquire context ordering.
XXX pullup-8
XXX pullup-9
XXX pullup-10
diffstat:
sys/external/bsd/drm2/linux/linux_ww_mutex.c | 8 ++++----
1 files changed, 4 insertions(+), 4 deletions(-)
diffs (36 lines):
diff -r 37570c27a59c -r 06755fcd1afe sys/external/bsd/drm2/linux/linux_ww_mutex.c
--- a/sys/external/bsd/drm2/linux/linux_ww_mutex.c Sat Jul 29 23:11:50 2023 +0000
+++ b/sys/external/bsd/drm2/linux/linux_ww_mutex.c Sat Jul 29 23:50:03 2023 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: linux_ww_mutex.c,v 1.15 2023/07/29 22:43:56 riastradh Exp $ */
+/* $NetBSD: linux_ww_mutex.c,v 1.16 2023/07/29 23:50:03 riastradh Exp $ */
/*-
* Copyright (c) 2014 The NetBSD Foundation, Inc.
@@ -30,7 +30,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: linux_ww_mutex.c,v 1.15 2023/07/29 22:43:56 riastradh Exp $");
+__KERNEL_RCSID(0, "$NetBSD: linux_ww_mutex.c,v 1.16 2023/07/29 23:50:03 riastradh Exp $");
#include <sys/types.h>
#include <sys/atomic.h>
@@ -62,7 +62,7 @@ ww_acquire_ctx_compare(void *cookie __un
if (ctx_a->wwx_ticket < ctx_b->wwx_ticket)
return -1;
if (ctx_a->wwx_ticket > ctx_b->wwx_ticket)
- return -1;
+ return +1;
return 0;
}
@@ -76,7 +76,7 @@ ww_acquire_ctx_compare_key(void *cookie
if (ctx->wwx_ticket < ticket)
return -1;
if (ctx->wwx_ticket > ticket)
- return -1;
+ return +1;
return 0;
}
Home |
Main Index |
Thread Index |
Old Index