Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 7 May 2017 14:59:46 +0000 (UTC)
From:      Konstantin Belousov <kib@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r317908 - head/sys/ufs/ffs
Message-ID:  <201705071459.v47ExkdP089159@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: kib
Date: Sun May  7 14:59:45 2017
New Revision: 317908
URL: https://svnweb.freebsd.org/changeset/base/317908

Log:
  Remove spl() calls from UFS code.
  
  Sponsored by:	The FreeBSD Foundation
  MFC after:	1 week

Modified:
  head/sys/ufs/ffs/ffs_rawread.c

Modified: head/sys/ufs/ffs/ffs_rawread.c
==============================================================================
--- head/sys/ufs/ffs/ffs_rawread.c	Sun May  7 14:33:58 2017	(r317907)
+++ head/sys/ufs/ffs/ffs_rawread.c	Sun May  7 14:59:45 2017	(r317908)
@@ -270,7 +270,6 @@ ffs_rawread_main(struct vnode *vp,
 	int error, nerror;
 	struct buf *bp, *nbp, *tbp;
 	u_int iolen;
-	int spl;
 	caddr_t udata;
 	long resid;
 	off_t offset;
@@ -330,10 +329,7 @@ ffs_rawread_main(struct vnode *vp,
 			}
 		}
 		
-		spl = splbio();
 		bwait(bp, PRIBIO, "rawrd");
-		splx(spl);
-		
 		vunmapbuf(bp);
 		
 		iolen = bp->b_bcount - bp->b_resid;
@@ -400,9 +396,7 @@ ffs_rawread_main(struct vnode *vp,
 		relpbuf(bp, &ffsrawbufcnt);
 	}
 	if (nbp != NULL) {			/* Run down readahead buffer */
-		spl = splbio();
 		bwait(nbp, PRIBIO, "rawrd");
-		splx(spl);
 		vunmapbuf(nbp);
 		pbrelvp(nbp);
 		relpbuf(nbp, &ffsrawbufcnt);



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