summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--sys/kern/vfs_cluster.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/sys/kern/vfs_cluster.c b/sys/kern/vfs_cluster.c
index 3f9437c70810..85fb8b339ffc 100644
--- a/sys/kern/vfs_cluster.c
+++ b/sys/kern/vfs_cluster.c
@@ -910,8 +910,10 @@ cluster_wbuild(vp, size, start_lbn, len)
splx(s);
} /* end of code for non-first buffers only */
/* check for latent dependencies to be handled */
- if ((LIST_FIRST(&tbp->b_dep)) != NULL)
+ if ((LIST_FIRST(&tbp->b_dep)) != NULL) {
+ tbp->b_iocmd = BIO_WRITE;
buf_start(tbp);
+ }
/*
* If the IO is via the VM then we do some
* special VM hackery (yuck). Since the buffer's