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

Reply via email to