aboutsummaryrefslogtreecommitdiff
path: root/sys/ufs/ffs/ffs_vfsops.c
diff options
context:
space:
mode:
Diffstat (limited to 'sys/ufs/ffs/ffs_vfsops.c')
-rw-r--r--sys/ufs/ffs/ffs_vfsops.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/ufs/ffs/ffs_vfsops.c b/sys/ufs/ffs/ffs_vfsops.c
index 60d4dad57d03..04afbfd4d6e4 100644
--- a/sys/ufs/ffs/ffs_vfsops.c
+++ b/sys/ufs/ffs/ffs_vfsops.c
@@ -2393,10 +2393,10 @@ ffs_backgroundwritedone(struct buf *bp)
#endif
/*
* This buffer is marked B_NOCACHE so when it is released
- * by biodone it will be tossed.
+ * by biodone it will be tossed. Clear B_IOSTARTED in case of error.
*/
bp->b_flags |= B_NOCACHE;
- bp->b_flags &= ~B_CACHE;
+ bp->b_flags &= ~(B_CACHE | B_IOSTARTED);
pbrelvp(bp);
/*