diff options
author | kib <kib@FreeBSD.org> | 2016-10-20 13:12:19 +0000 |
---|---|---|
committer | kib <kib@FreeBSD.org> | 2016-10-20 13:12:19 +0000 |
commit | d9cd623ce2b216efbe9a82496c50104a3af9a1fe (patch) | |
tree | 702295605705d5bda3b33bbef6c3de1730df9399 /sys/cddl/contrib/opensolaris/uts/common/fs/zfs/zfs_vnops.c | |
parent | d915f5215166a446e07cb0a85c4f05f5cfae3d32 (diff) | |
download | FreeBSD-src-d9cd623ce2b216efbe9a82496c50104a3af9a1fe.zip FreeBSD-src-d9cd623ce2b216efbe9a82496c50104a3af9a1fe.tar.gz |
MFC r307218:
Fix a race in vm_page_busy_sleep(9).
Diffstat (limited to 'sys/cddl/contrib/opensolaris/uts/common/fs/zfs/zfs_vnops.c')
-rw-r--r-- | sys/cddl/contrib/opensolaris/uts/common/fs/zfs/zfs_vnops.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/zfs_vnops.c b/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/zfs_vnops.c index 23778fb..3262029 100644 --- a/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/zfs_vnops.c +++ b/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/zfs_vnops.c @@ -421,7 +421,7 @@ page_busy(vnode_t *vp, int64_t start, int64_t off, int64_t nbytes) vm_page_reference(pp); vm_page_lock(pp); zfs_vmobject_wunlock(obj); - vm_page_busy_sleep(pp, "zfsmwb"); + vm_page_busy_sleep(pp, "zfsmwb", true); zfs_vmobject_wlock(obj); continue; } @@ -476,7 +476,7 @@ page_hold(vnode_t *vp, int64_t start) vm_page_reference(pp); vm_page_lock(pp); zfs_vmobject_wunlock(obj); - vm_page_busy_sleep(pp, "zfsmwb"); + vm_page_busy_sleep(pp, "zfsmwb", true); zfs_vmobject_wlock(obj); continue; } |