Call rump_pub_lwproc_newlwp() in the lfs cleaner thread to make its

rump system calls all use the same lwp.  Hopefully this will fix
PR kern/53884.  Also call rump_pub_lwproc_releaselwp() at the end.
This commit is contained in:
gson 2019-01-20 14:50:58 +00:00
parent e23248decd
commit 0bd23f10c8

View File

@ -1,4 +1,4 @@
/* $NetBSD: fstest_lfs.c,v 1.5 2015/08/30 18:27:26 dholland Exp $ */
/* $NetBSD: fstest_lfs.c,v 1.6 2019/01/20 14:50:58 gson Exp $ */
/*-
* Copyright (c) 2010 The NetBSD Foundation, Inc.
@ -128,6 +128,8 @@ cleaner(void *arg)
const char *the_argv[7];
char buf[64];
rump_pub_lwproc_newlwp(rump_sys_getpid());
/* this inspired by the cleaner code. fixme */
sprintf(thepath, "/dev/r%s", args->ta_devpath+5);
rump_pub_etfs_register(thepath, args->ta_hostpath, RUMP_ETFS_CHR);
@ -146,6 +148,8 @@ cleaner(void *arg)
lfs_cleaner_main(5, __UNCONST(the_argv));
rump_pub_lwproc_releaselwp();
return NULL;
}