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));
 }
 
 /*
_______________________________________________
svn-src-head@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-head
To unsubscribe, send any mail to "svn-src-head-unsubscr...@freebsd.org"

Reply via email to