Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 24 Jul 2020 17:34:44 +0000 (UTC)
From:      Conrad Meyer <cem@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r363483 - head/sys/kern
Message-ID:  <202007241734.06OHYiGK080533@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
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));
 }
 
 /*



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202007241734.06OHYiGK080533>