1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-12-16 10:20:30 +00:00

Don't mistake a non-async block that needs to be committed for an

interrupted write.

Obtained from: fvdl@NetBSD.org via OpenBSD.
This commit is contained in:
Peter Wemm 1999-06-05 05:25:37 +00:00
parent 3d41489171
commit adbde675ee
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=47749
2 changed files with 4 additions and 4 deletions

View File

@ -34,7 +34,7 @@
* SUCH DAMAGE.
*
* @(#)nfs_bio.c 8.9 (Berkeley) 3/30/95
* $Id: nfs_bio.c,v 1.70 1999/05/02 23:56:24 alc Exp $
* $Id: nfs_bio.c,v 1.71 1999/05/06 20:00:30 phk Exp $
*/
@ -1396,7 +1396,7 @@ nfs_doio(bp, cr, p)
bdirty(bp);
bp->b_flags &= ~B_DONE;
}
if ((bp->b_flags & B_ASYNC) == 0)
if (error && (bp->b_flags & B_ASYNC) == 0)
bp->b_flags |= B_EINTR;
splx(s);
} else {

View File

@ -34,7 +34,7 @@
* SUCH DAMAGE.
*
* @(#)nfs_bio.c 8.9 (Berkeley) 3/30/95
* $Id: nfs_bio.c,v 1.70 1999/05/02 23:56:24 alc Exp $
* $Id: nfs_bio.c,v 1.71 1999/05/06 20:00:30 phk Exp $
*/
@ -1396,7 +1396,7 @@ nfs_doio(bp, cr, p)
bdirty(bp);
bp->b_flags &= ~B_DONE;
}
if ((bp->b_flags & B_ASYNC) == 0)
if (error && (bp->b_flags & B_ASYNC) == 0)
bp->b_flags |= B_EINTR;
splx(s);
} else {