diff options
| author | hannken <hannken@NetBSD.org> | 2019-03-09 09:02:38 +0000 |
|---|---|---|
| committer | hannken <hannken@NetBSD.org> | 2019-03-09 09:02:38 +0000 |
| commit | ff3b35581bba391dafdb2b7ff6a2a79f9b07802d (patch) | |
| tree | 30905e4650192d0e2d9d93c13dbb56c8f3916c42 /sys | |
| parent | ca72d3260fd8972fe04f90be1d160ed5c251576d (diff) | |
Rumpkernel has its own thread deallocation. Add missing fstrans_lwp_dtor()
to lwproc_freelwp().
PR bin/50350: rump/rumpkern/t_sp/stress_{long,short} fail on Core 2 Quad
Diffstat (limited to 'sys')
| -rw-r--r-- | sys/rump/librump/rumpkern/emul.c | 13 | ||||
| -rw-r--r-- | sys/rump/librump/rumpkern/lwproc.c | 6 |
2 files changed, 15 insertions, 4 deletions
diff --git a/sys/rump/librump/rumpkern/emul.c b/sys/rump/librump/rumpkern/emul.c index 6472cc2bbf8..ec623276d54 100644 --- a/sys/rump/librump/rumpkern/emul.c +++ b/sys/rump/librump/rumpkern/emul.c @@ -1,4 +1,4 @@ -/* $NetBSD: emul.c,v 1.189 2018/12/05 19:56:49 christos Exp $ */ +/* $NetBSD: emul.c,v 1.190 2019/03/09 09:02:38 hannken Exp $ */ /* * Copyright (c) 2007-2011 Antti Kantee. All Rights Reserved. @@ -26,7 +26,7 @@ */ #include <sys/cdefs.h> -__KERNEL_RCSID(0, "$NetBSD: emul.c,v 1.189 2018/12/05 19:56:49 christos Exp $"); +__KERNEL_RCSID(0, "$NetBSD: emul.c,v 1.190 2019/03/09 09:02:38 hannken Exp $"); #include <sys/param.h> #include <sys/cprng.h> @@ -292,6 +292,15 @@ rump_fstrans_done(struct mount *mp) } __weak_alias(fstrans_done,rump_fstrans_done); + +void rump_fstrans_lwp_dtor(struct lwp *); +void +rump_fstrans_lwp_dtor(struct lwp *l) +{ + +} +__weak_alias(fstrans_lwp_dtor,rump_fstrans_lwp_dtor); + /* * Provide weak aliases for tty routines used by printf. * They will be used unless the rumpkern_tty component is present. diff --git a/sys/rump/librump/rumpkern/lwproc.c b/sys/rump/librump/rumpkern/lwproc.c index 4fc12783ee2..224b499fd9f 100644 --- a/sys/rump/librump/rumpkern/lwproc.c +++ b/sys/rump/librump/rumpkern/lwproc.c @@ -1,4 +1,4 @@ -/* $NetBSD: lwproc.c,v 1.40 2016/04/24 07:45:10 martin Exp $ */ +/* $NetBSD: lwproc.c,v 1.41 2019/03/09 09:02:38 hannken Exp $ */ /* * Copyright (c) 2010, 2011 Antti Kantee. All Rights Reserved. @@ -28,11 +28,12 @@ #define RUMP__CURLWP_PRIVATE #include <sys/cdefs.h> -__KERNEL_RCSID(0, "$NetBSD: lwproc.c,v 1.40 2016/04/24 07:45:10 martin Exp $"); +__KERNEL_RCSID(0, "$NetBSD: lwproc.c,v 1.41 2019/03/09 09:02:38 hannken Exp $"); #include <sys/param.h> #include <sys/atomic.h> #include <sys/filedesc.h> +#include <sys/fstrans.h> #include <sys/kauth.h> #include <sys/kmem.h> #include <sys/lwp.h> @@ -326,6 +327,7 @@ lwproc_freelwp(struct lwp *l) if (l->l_name) kmem_free(l->l_name, MAXCOMLEN); + fstrans_lwp_dtor(l); lwp_finispecific(l); lwproc_curlwpop(RUMPUSER_LWP_DESTROY, l); |
