Remove spl() calls from UFS code.

Sponsored by:	The FreeBSD Foundation
MFC after:	1 week
This commit is contained in:
Konstantin Belousov 2017-05-07 14:59:45 +00:00
parent 468cefa22e
commit 215b29f62c
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=317908

View File

@ -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);