Remove a lingering use of splbio().
The buffer must be locked by the caller. No functional change intended. Reviewed by: kib MFC after: 1 week Sponsored by: The FreeBSD Foundation
This commit is contained in:
parent
2771ab3322
commit
673c1c2944
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=349334
@ -375,9 +375,6 @@ smbfs_doio(struct vnode *vp, struct buf *bp, struct ucred *cr, struct thread *td
|
|||||||
*/
|
*/
|
||||||
if (error == EINTR
|
if (error == EINTR
|
||||||
|| (!error && (bp->b_flags & B_NEEDCOMMIT))) {
|
|| (!error && (bp->b_flags & B_NEEDCOMMIT))) {
|
||||||
int s;
|
|
||||||
|
|
||||||
s = splbio();
|
|
||||||
bp->b_flags &= ~(B_INVAL|B_NOCACHE);
|
bp->b_flags &= ~(B_INVAL|B_NOCACHE);
|
||||||
if ((bp->b_flags & B_ASYNC) == 0)
|
if ((bp->b_flags & B_ASYNC) == 0)
|
||||||
bp->b_flags |= B_EINTR;
|
bp->b_flags |= B_EINTR;
|
||||||
@ -387,7 +384,6 @@ smbfs_doio(struct vnode *vp, struct buf *bp, struct ucred *cr, struct thread *td
|
|||||||
}
|
}
|
||||||
if ((bp->b_flags & B_ASYNC) == 0)
|
if ((bp->b_flags & B_ASYNC) == 0)
|
||||||
bp->b_flags |= B_EINTR;
|
bp->b_flags |= B_EINTR;
|
||||||
splx(s);
|
|
||||||
} else {
|
} else {
|
||||||
if (error) {
|
if (error) {
|
||||||
bp->b_ioflags |= BIO_ERROR;
|
bp->b_ioflags |= BIO_ERROR;
|
||||||
|
Loading…
Reference in New Issue
Block a user