From 5a96e837ea28d5721703707d0ca550a563c696f9 Mon Sep 17 00:00:00 2001 From: Simon Schubert Date: Fri, 2 May 2008 00:19:52 +0000 Subject: [PATCH] Properly yield to userland processes. --- sys/kern/vfs_mount.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/sys/kern/vfs_mount.c b/sys/kern/vfs_mount.c index b7c8ba5a2a..2acd198cbf 100644 --- a/sys/kern/vfs_mount.c +++ b/sys/kern/vfs_mount.c @@ -67,7 +67,7 @@ * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * SUCH DAMAGE. * - * $DragonFly: src/sys/kern/vfs_mount.c,v 1.31 2008/02/10 13:45:21 corecode Exp $ + * $DragonFly: src/sys/kern/vfs_mount.c,v 1.32 2008/05/02 00:19:52 corecode Exp $ */ /* @@ -991,7 +991,8 @@ next: * now and then. */ if (++count == 10000) { - lwkt_yield(); + /* We really want to yield a bit, so we simply sleep a tick */ + tsleep(mp, 0, "vnodescn", 1); count = 0; } -- 2.11.4.GIT