Module Name: src
Committed By: ad
Date: Fri Jan 17 19:33:14 UTC 2020
Modified Files:
src/sys/kern: vfs_bio.c
Log Message:
biodone2(): don't acquire kernel_lock for anybody anymore.
To generate a diff of this commit:
cvs rdiff -u -r1.286 -r1.287 src/sys/kern/vfs_bio.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/sys/kern/vfs_bio.c
diff -u src/sys/kern/vfs_bio.c:1.286 src/sys/kern/vfs_bio.c:1.287
--- src/sys/kern/vfs_bio.c:1.286 Tue Dec 31 13:07:13 2019
+++ src/sys/kern/vfs_bio.c Fri Jan 17 19:33:14 2020
@@ -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 @@ biodone2(buf_t *bp)
/* 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);