Module Name: src Committed By: pooka Date: Tue Sep 7 17:22:53 UTC 2010
Modified Files: src/lib/libp2k: p2k.c Log Message: Simplify now that ukfs deals with being called from a thread which already has a rump lwp context. To generate a diff of this commit: cvs rdiff -u -r1.43 -r1.44 src/lib/libp2k/p2k.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
Modified files: Index: src/lib/libp2k/p2k.c diff -u src/lib/libp2k/p2k.c:1.43 src/lib/libp2k/p2k.c:1.44 --- src/lib/libp2k/p2k.c:1.43 Tue Sep 7 17:16:19 2010 +++ src/lib/libp2k/p2k.c Tue Sep 7 17:22:53 2010 @@ -1,4 +1,4 @@ -/* $NetBSD: p2k.c,v 1.43 2010/09/07 17:16:19 pooka Exp $ */ +/* $NetBSD: p2k.c,v 1.44 2010/09/07 17:22:53 pooka Exp $ */ /* * Copyright (c) 2007, 2008, 2009 Antti Kantee. All Rights Reserved. @@ -560,14 +560,10 @@ { struct p2k_mount *p2m = puffs_getspecific(pu); struct ukfs *fs = p2m->p2m_ukfs; - struct lwp *l; int error = 0; rump_pub_vp_rele(p2m->p2m_rvp); - l = rump_pub_lwproc_curlwp(); - rump_pub_lwproc_switch(NULL); /* ukfs & curlwp tricks */ - if (fs) { if (ukfs_release(fs, 0) != 0) { ukfs_release(fs, UKFS_RELFLAG_FORCE); @@ -575,7 +571,6 @@ } } p2m->p2m_ukfs = NULL; - rump_pub_lwproc_switch(l); if (p2m->p2m_hasdebug) { printf("-- rump kernel event counters --\n");