Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/kern Need membar_datadep_consumer here.



details:   https://anonhg.NetBSD.org/src/rev/e32a7059f39a
branches:  trunk
changeset: 352134:e32a7059f39a
user:      riastradh <riastradh%NetBSD.org@localhost>
date:      Sat Mar 18 05:49:56 2017 +0000

description:
Need membar_datadep_consumer here.

diffstat:

 sys/kern/kern_uidinfo.c |  5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)

diffs (26 lines):

diff -r 21b94b984b29 -r e32a7059f39a sys/kern/kern_uidinfo.c
--- a/sys/kern/kern_uidinfo.c   Sat Mar 18 05:45:48 2017 +0000
+++ b/sys/kern/kern_uidinfo.c   Sat Mar 18 05:49:56 2017 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: kern_uidinfo.c,v 1.9 2017/03/18 05:49:17 riastradh Exp $       */
+/*     $NetBSD: kern_uidinfo.c,v 1.10 2017/03/18 05:49:56 riastradh Exp $      */
 
 /*-
  * Copyright (c) 1982, 1986, 1991, 1993
@@ -35,7 +35,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: kern_uidinfo.c,v 1.9 2017/03/18 05:49:17 riastradh Exp $");
+__KERNEL_RCSID(0, "$NetBSD: kern_uidinfo.c,v 1.10 2017/03/18 05:49:56 riastradh Exp $");
 
 #include <sys/param.h>
 #include <sys/systm.h>
@@ -161,6 +161,7 @@
        uip_first = uipp->slh_first;
  again:
        SLIST_FOREACH(uip, uipp, ui_hash) {
+               membar_datadep_consumer();
                if (uip->ui_uid != uid)
                        continue;
                if (newuip != NULL)



Home | Main Index | Thread Index | Old Index