Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/kern biodone2(): don't acquire kernel_lock for anybody a...
details: https://anonhg.NetBSD.org/src/rev/5699732d2491
branches: trunk
changeset: 848097:5699732d2491
user: ad <ad%NetBSD.org@localhost>
date: Fri Jan 17 19:33:14 2020 +0000
description:
biodone2(): don't acquire kernel_lock for anybody anymore.
diffstat:
sys/kern/vfs_bio.c | 6 ++----
1 files changed, 2 insertions(+), 4 deletions(-)
diffs (30 lines):
diff -r 9e8f8a810130 -r 5699732d2491 sys/kern/vfs_bio.c
--- a/sys/kern/vfs_bio.c Fri Jan 17 19:30:51 2020 +0000
+++ b/sys/kern/vfs_bio.c Fri Jan 17 19:33:14 2020 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: vfs_bio.c,v 1.286 2019/12/31 13:07:13 ad Exp $ */
+/* $NetBSD: vfs_bio.c,v 1.287 2020/01/17 19:33:14 ad Exp $ */
/*-
* Copyright (c) 2007, 2008, 2009, 2019 The NetBSD Foundation, Inc.
@@ -123,7 +123,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: vfs_bio.c,v 1.286 2019/12/31 13:07:13 ad Exp $");
+__KERNEL_RCSID(0, "$NetBSD: vfs_bio.c,v 1.287 2020/01/17 19:33:14 ad Exp $");
#ifdef _KERNEL_OPT
#include "opt_bufcache.h"
@@ -1666,11 +1666,9 @@
/* Note callout done, then call out. */
KASSERT(!cv_has_waiters(&bp->b_done));
- KERNEL_LOCK(1, NULL); /* XXXSMP */
bp->b_iodone = NULL;
mutex_exit(bp->b_objlock);
(*callout)(bp);
- KERNEL_UNLOCK_ONE(NULL); /* XXXSMP */
} else if (ISSET(bp->b_flags, B_ASYNC)) {
/* If async, release. */
BIOHIST_LOG(biohist, "async", 0, 0, 0, 0);
Home |
Main Index |
Thread Index |
Old Index