diff options
author | 2006-06-14 20:01:50 +0000 | |
---|---|---|
committer | 2006-06-14 20:01:50 +0000 | |
commit | 2e6147f207d8e5b50fbb5208246b9d6901cc9815 (patch) | |
tree | 271426e9e129dfbe7376c31fccbc89cd1af722ca /sys/xfs | |
parent | .Xr adjfreq and ntpd (diff) | |
download | wireguard-openbsd-2e6147f207d8e5b50fbb5208246b9d6901cc9815.tar.xz wireguard-openbsd-2e6147f207d8e5b50fbb5208246b9d6901cc9815.zip |
move vfs_busy() to rwlocks and properly hide the locking api from vfs
ok tedu, pedro
Diffstat (limited to 'sys/xfs')
-rw-r--r-- | sys/xfs/xfs_dev-common.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/xfs/xfs_dev-common.c b/sys/xfs/xfs_dev-common.c index 533bcae5a02..55100533536 100644 --- a/sys/xfs/xfs_dev-common.c +++ b/sys/xfs/xfs_dev-common.c @@ -180,7 +180,7 @@ xfs_devclose_common(dev_t dev, d_thread_t *proc) */ if (xfs[minor(dev)].mp != NULL) { - if (xfs_vfs_busy(xfs[minor(dev)].mp, 0, NULL, proc)) { + if (xfs_vfs_busy(xfs[minor(dev)].mp, VB_READ|VB_UMWAIT, NULL, proc)) { NNPFSDEB(XDEBNODE, ("xfs_dev_close: vfs_busy() --> BUSY\n")); return EBUSY; } |