Remove spl() calls from UFS code.
Sponsored by: The FreeBSD Foundation MFC after: 1 week
This commit is contained in:
parent
468cefa22e
commit
215b29f62c
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user