Source-Changes-HG archive

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

[src/trunk]: src/lib/librumpuser Create a kernel thread context for the bio u...



details:   https://anonhg.NetBSD.org/src/rev/5f5add6a0a70
branches:  trunk
changeset: 786479:5f5add6a0a70
user:      pooka <pooka%NetBSD.org@localhost>
date:      Mon Apr 29 14:54:03 2013 +0000

description:
Create a kernel thread context for the bio upcalls.

diffstat:

 lib/librumpuser/rumpuser_bio.c |  7 ++++++-
 1 files changed, 6 insertions(+), 1 deletions(-)

diffs (22 lines):

diff -r 54cdc833f7ae -r 5f5add6a0a70 lib/librumpuser/rumpuser_bio.c
--- a/lib/librumpuser/rumpuser_bio.c    Mon Apr 29 14:53:32 2013 +0000
+++ b/lib/librumpuser/rumpuser_bio.c    Mon Apr 29 14:54:03 2013 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: rumpuser_bio.c,v 1.4 2013/04/29 14:51:39 pooka Exp $   */
+/*     $NetBSD: rumpuser_bio.c,v 1.5 2013/04/29 14:54:03 pooka Exp $   */
 
 /*-
  * Copyright (c) 2013 Antti Kantee.  All Rights Reserved.
@@ -100,7 +100,12 @@
 biothread(void *arg)
 {
        struct rumpuser_bio *biop;
+       int rv;
 
+       rumpuser__hyp.hyp_schedule();
+       rv = rumpuser__hyp.hyp_lwproc_newlwp(0);
+       assert(rv == 0);
+       rumpuser__hyp.hyp_unschedule();
        NOFAIL_ERRNO(pthread_mutex_lock(&biomtx));
        for (;;) {
                while (bio_head == bio_tail)



Home | Main Index | Thread Index | Old Index