Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/lib/librumpuser set default bio mode to threaded
details: https://anonhg.NetBSD.org/src/rev/73a460dcea40
branches: trunk
changeset: 786473:73a460dcea40
user: pooka <pooka%NetBSD.org@localhost>
date: Mon Apr 29 13:57:46 2013 +0000
description:
set default bio mode to threaded
diffstat:
lib/librumpuser/rumpuser_bio.c | 7 ++++---
1 files changed, 4 insertions(+), 3 deletions(-)
diffs (28 lines):
diff -r f0143c8c7610 -r 73a460dcea40 lib/librumpuser/rumpuser_bio.c
--- a/lib/librumpuser/rumpuser_bio.c Mon Apr 29 13:53:46 2013 +0000
+++ b/lib/librumpuser/rumpuser_bio.c Mon Apr 29 13:57:46 2013 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: rumpuser_bio.c,v 1.2 2013/04/29 13:53:46 pooka Exp $ */
+/* $NetBSD: rumpuser_bio.c,v 1.3 2013/04/29 13:57:46 pooka Exp $ */
/*-
* Copyright (c) 2013 Antti Kantee. All Rights Reserved.
@@ -126,7 +126,7 @@
{
struct rumpuser_bio bio;
static int inited = 0;
- static int usethread = 0;
+ static int usethread = 1;
int nlocks;
rumpuser__unschedule(0, &nlocks, NULL);
@@ -145,7 +145,8 @@
if (getenv_r("RUMP_THREADS", buf, sizeof(buf)) == 0)
usethread = *buf != '0';
- pthread_create(&pt, NULL, biothread, NULL);
+ if (usethread)
+ pthread_create(&pt, NULL, biothread, NULL);
inited = 1;
}
pthread_mutex_unlock(&biomtx);
Home |
Main Index |
Thread Index |
Old Index