summaryrefslogtreecommitdiffstats
path: root/sys/boot/pc98/boot2
diff options
context:
space:
mode:
authortegge <tegge@FreeBSD.org>2006-09-26 04:15:59 +0000
committertegge <tegge@FreeBSD.org>2006-09-26 04:15:59 +0000
commitf42473d76b149849661d41c1f44a36dd01096d40 (patch)
tree3bc9361221d5a734023278052dddd20fb2025bee /sys/boot/pc98/boot2
parentb500b0ae92746b6a7309c0f88afadb7c588fd859 (diff)
downloadFreeBSD-src-f42473d76b149849661d41c1f44a36dd01096d40.zip
FreeBSD-src-f42473d76b149849661d41c1f44a36dd01096d40.tar.gz
Add mnt_noasync counter to better handle interleaved calls to nmount(),
sync() and sync_fsync() without losing MNT_ASYNC. Add MNTK_ASYNC flag which is set only when MNT_ASYNC is set and mnt_noasync is zero, and check that flag instead of MNT_ASYNC before initiating async io.
Diffstat (limited to 'sys/boot/pc98/boot2')
-rw-r--r--sys/boot/pc98/boot2/inode.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/boot/pc98/boot2/inode.h b/sys/boot/pc98/boot2/inode.h
index 9a59f99..add9bb9 100644
--- a/sys/boot/pc98/boot2/inode.h
+++ b/sys/boot/pc98/boot2/inode.h
@@ -147,7 +147,7 @@ struct indir {
/* Determine if soft dependencies are being done */
#define DOINGSOFTDEP(vp) ((vp)->v_mount->mnt_flag & MNT_SOFTDEP)
-#define DOINGASYNC(vp) ((vp)->v_mount->mnt_flag & MNT_ASYNC)
+#define DOINGASYNC(vp) ((vp)->v_mount->mnt_kern_flag & MNTK_ASYNC)
/* This overlays the fid structure (see mount.h). */
struct ufid {
OpenPOWER on IntegriCloud