Source-Changes-HG archive

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

[src/trunk]: src/sys/rump/librump/rumpkern Adapt to LWP ID allocation changes.



details:   https://anonhg.NetBSD.org/src/rev/98bff00c9be8
branches:  trunk
changeset: 1009474:98bff00c9be8
user:      thorpej <thorpej%NetBSD.org@localhost>
date:      Fri Apr 24 03:56:12 2020 +0000

description:
Adapt to LWP ID allocation changes.

diffstat:

 sys/rump/librump/rumpkern/lwproc.c |  7 ++++---
 1 files changed, 4 insertions(+), 3 deletions(-)

diffs (35 lines):

diff -r f784162bf03b -r 98bff00c9be8 sys/rump/librump/rumpkern/lwproc.c
--- a/sys/rump/librump/rumpkern/lwproc.c        Fri Apr 24 03:25:20 2020 +0000
+++ b/sys/rump/librump/rumpkern/lwproc.c        Fri Apr 24 03:56:12 2020 +0000
@@ -1,4 +1,4 @@
-/*      $NetBSD: lwproc.c,v 1.45 2020/04/19 20:32:00 thorpej Exp $     */
+/*      $NetBSD: lwproc.c,v 1.46 2020/04/24 03:56:12 thorpej Exp $     */
 
 /*
  * Copyright (c) 2010, 2011 Antti Kantee.  All Rights Reserved.
@@ -28,7 +28,7 @@
 #define RUMP__CURLWP_PRIVATE
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: lwproc.c,v 1.45 2020/04/19 20:32:00 thorpej Exp $");
+__KERNEL_RCSID(0, "$NetBSD: lwproc.c,v 1.46 2020/04/24 03:56:12 thorpej Exp $");
 
 #include <sys/param.h>
 #include <sys/atomic.h>
@@ -311,6 +311,7 @@
        KASSERT(l->l_refcnt == 0);
 
        /* ok, zero references, continue with nuke */
+       proc_free_lwpid(p, l->l_lid);
        LIST_REMOVE(l, l_sibling);
        KASSERT(p->p_nlwps >= 1);
        if (--p->p_nlwps == 0) {
@@ -361,7 +362,7 @@
        l->l_refcnt = 1;
        l->l_proc = p;
 
-       l->l_lid = p->p_nlwpid++;
+       proc_alloc_lwpid(p, l);
        LIST_INSERT_HEAD(&p->p_lwps, l, l_sibling);
 
        l->l_fd = p->p_fd;



Home | Main Index | Thread Index | Old Index