Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/tests/fs/common Call rump_pub_lwproc_newlwp() in the lfs cle...
details: https://anonhg.NetBSD.org/src/rev/2a7d403293fa
branches: trunk
changeset: 448061:2a7d403293fa
user: gson <gson%NetBSD.org@localhost>
date: Sun Jan 20 14:50:58 2019 +0000
description:
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.
diffstat:
tests/fs/common/fstest_lfs.c | 6 +++++-
1 files changed, 5 insertions(+), 1 deletions(-)
diffs (27 lines):
diff -r 95ab193b65eb -r 2a7d403293fa tests/fs/common/fstest_lfs.c
--- a/tests/fs/common/fstest_lfs.c Sun Jan 20 13:07:28 2019 +0000
+++ b/tests/fs/common/fstest_lfs.c Sun Jan 20 14:50:58 2019 +0000
@@ -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 @@
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 @@
lfs_cleaner_main(5, __UNCONST(the_argv));
+ rump_pub_lwproc_releaselwp();
+
return NULL;
}
Home |
Main Index |
Thread Index |
Old Index