From 9dc48ffbf643a3eeeae27d90febe45c89d6080a5 Mon Sep 17 00:00:00 2001 From: ad Date: Thu, 10 Jan 2008 16:29:17 +0000 Subject: [PATCH] uiomove: don't bother with kernel_lock any more. --- sys/kern/kern_subr.c | 15 ++------------- 1 file changed, 2 insertions(+), 13 deletions(-) diff --git a/sys/kern/kern_subr.c b/sys/kern/kern_subr.c index 75bc36a3c0f9..d5460f5c75e7 100644 --- a/sys/kern/kern_subr.c +++ b/sys/kern/kern_subr.c @@ -1,4 +1,4 @@ -/* $NetBSD: kern_subr.c,v 1.173 2008/01/05 12:53:55 dsl Exp $ */ +/* $NetBSD: kern_subr.c,v 1.174 2008/01/10 16:29:17 ad Exp $ */ /*- * Copyright (c) 1997, 1998, 1999, 2002, 2007, 2006 The NetBSD Foundation, Inc. @@ -86,7 +86,7 @@ */ #include -__KERNEL_RCSID(0, "$NetBSD: kern_subr.c,v 1.173 2008/01/05 12:53:55 dsl Exp $"); +__KERNEL_RCSID(0, "$NetBSD: kern_subr.c,v 1.174 2008/01/10 16:29:17 ad Exp $"); #include "opt_ddb.h" #include "opt_md.h" @@ -156,15 +156,7 @@ uiomove(void *buf, size_t n, struct uio *uio) struct iovec *iov; u_int cnt; int error = 0; - size_t on; char *cp = buf; -#ifdef MULTIPROCESSOR - int hold_count; -#endif - - if ((on = n) >= 1024) { - KERNEL_UNLOCK_ALL(NULL, &hold_count); - } ASSERT_SLEEPABLE(NULL, "uiomove"); @@ -208,9 +200,6 @@ uiomove(void *buf, size_t n, struct uio *uio) n -= cnt; } - if (on >= 1024) { - KERNEL_LOCK(hold_count, NULL); - } return (error); }