summaryrefslogtreecommitdiff
path: root/sys/ufs/ffs/ffs_softdep_stub.c
diff options
context:
space:
mode:
authorMichael Shalayeff <mickey@cvs.openbsd.org>2006-06-21 10:01:11 +0000
committerMichael Shalayeff <mickey@cvs.openbsd.org>2006-06-21 10:01:11 +0000
commit834b1d43c7a47e7cb72960feacca338f86a433ef (patch)
treeed8940553843b7d0d2f25ca5f31e3b5255a895b4 /sys/ufs/ffs/ffs_softdep_stub.c
parent820ea82d234beda35e76a41e6256e120cc1d0c7b (diff)
propagate the wait flag from fsync down to softdep_fsync_mountdev()
and do not perform synchronous sync there is no wait requested by skipping the drain_output() call. this fixes a problem where update kthread would sleep forever on some vnode since work is created faster than it can be flushed. pedro@ ok; tested by many
Diffstat (limited to 'sys/ufs/ffs/ffs_softdep_stub.c')
-rw-r--r--sys/ufs/ffs/ffs_softdep_stub.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/ufs/ffs/ffs_softdep_stub.c b/sys/ufs/ffs/ffs_softdep_stub.c
index 7db07f7ef43..6af63587f45 100644
--- a/sys/ufs/ffs/ffs_softdep_stub.c
+++ b/sys/ufs/ffs/ffs_softdep_stub.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: ffs_softdep_stub.c,v 1.13 2006/06/19 22:52:23 miod Exp $ */
+/* $OpenBSD: ffs_softdep_stub.c,v 1.14 2006/06/21 10:01:10 mickey Exp $ */
/*
* Copyright 1998 Marshall Kirk McKusick. All Rights Reserved.
@@ -162,7 +162,7 @@ softdep_update_inodeblock(struct inode *ip, struct buf *bp, int waitfor)
#endif
void
-softdep_fsync_mountdev(struct vnode *vp)
+softdep_fsync_mountdev(struct vnode *vp, int waitfor)
{
return;
}