svn commit: r363483 - head/sys/kern

Conrad Meyer cem at FreeBSD.org
Fri Jul 24 17:34:44 UTC 2020


Author: cem
Date: Fri Jul 24 17:34:44 2020
New Revision: 363483
URL: https://svnweb.freebsd.org/changeset/base/363483

Log:
  Use gbincore_unlocked for unprotected incore()
  
  Reviewed by:	markj
  Sponsored by:	Isilon
  Differential Revision:	https://reviews.freebsd.org/D25790

Modified:
  head/sys/kern/vfs_bio.c

Modified: head/sys/kern/vfs_bio.c
==============================================================================
--- head/sys/kern/vfs_bio.c	Fri Jul 24 17:34:04 2020	(r363482)
+++ head/sys/kern/vfs_bio.c	Fri Jul 24 17:34:44 2020	(r363483)
@@ -3576,12 +3576,7 @@ flushbufqueues(struct vnode *lvp, struct bufdomain *bd
 struct buf *
 incore(struct bufobj *bo, daddr_t blkno)
 {
-	struct buf *bp;
-
-	BO_RLOCK(bo);
-	bp = gbincore(bo, blkno);
-	BO_RUNLOCK(bo);
-	return (bp);
+	return (gbincore_unlocked(bo, blkno));
 }
 
 /*


More information about the svn-src-all mailing list