Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/netbsd-7]: src/sys/external/bsd/drm2/ttm Pull up following revision(s) (...
details: https://anonhg.NetBSD.org/src/rev/8848385e19bc
branches: netbsd-7
changeset: 798358:8848385e19bc
user: snj <snj%NetBSD.org@localhost>
date: Sun Sep 21 18:04:38 2014 +0000
description:
Pull up following revision(s) (requested by riastradh in ticket #98):
sys/external/bsd/drm2/ttm/ttm_bo_vm.c: revision 1.5
We dropped vmobjlock, so reacquire it before uvmfault_unlockall.
diffstat:
sys/external/bsd/drm2/ttm/ttm_bo_vm.c | 10 ++++++----
1 files changed, 6 insertions(+), 4 deletions(-)
diffs (32 lines):
diff -r 47f30681bc2f -r 8848385e19bc sys/external/bsd/drm2/ttm/ttm_bo_vm.c
--- a/sys/external/bsd/drm2/ttm/ttm_bo_vm.c Sun Sep 21 18:03:33 2014 +0000
+++ b/sys/external/bsd/drm2/ttm/ttm_bo_vm.c Sun Sep 21 18:04:38 2014 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: ttm_bo_vm.c,v 1.2.4.2 2014/08/22 10:35:59 martin Exp $ */
+/* $NetBSD: ttm_bo_vm.c,v 1.2.4.3 2014/09/21 18:04:38 snj Exp $ */
/*-
* Copyright (c) 2014 The NetBSD Foundation, Inc.
@@ -30,7 +30,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: ttm_bo_vm.c,v 1.2.4.2 2014/08/22 10:35:59 martin Exp $");
+__KERNEL_RCSID(0, "$NetBSD: ttm_bo_vm.c,v 1.2.4.3 2014/09/21 18:04:38 snj Exp $");
#include <sys/types.h>
@@ -107,9 +107,11 @@
if (ret != -EBUSY)
goto out0;
/*
- * It's currently locked. Unlock the fault, wait for
- * it, and start over.
+ * It's currently locked. Unlock the fault (requires
+ * relocking uobj's vmobjlock first), wait for it, and
+ * start over.
*/
+ mutex_enter(uobj->vmobjlock);
uvmfault_unlockall(ufi, ufi->entry->aref.ar_amap, uobj);
(void)ttm_bo_wait_unreserved(bo);
return -ERESTART;
Home |
Main Index |
Thread Index |
Old Index