diff options
author | Jeff Roberson <jeff@FreeBSD.org> | 2019-12-08 01:47:29 +0000 |
---|---|---|
committer | Jeff Roberson <jeff@FreeBSD.org> | 2019-12-08 01:47:29 +0000 |
commit | d8ad7b7d6a5e0e828a444a487a12c878ac67344c (patch) | |
tree | 550e82a7f752e4d7bd19859f857c95ee07d3c276 | |
parent | 2780a26b6a306506ca521988799b5fa1cd5ce6c7 (diff) | |
download | src-d8ad7b7d6a5e0e828a444a487a12c878ac67344c.tar.gz src-d8ad7b7d6a5e0e828a444a487a12c878ac67344c.zip |
Do not assert that the object lock is held in vm_object_set_writeable_dirty.
A valid reference is all that is required. If we race with a deallocation
we will harmlessly misidentify the type of an already dead object.
Reviewed by: kib, markj
Differential Revision: https://reviews.freebsd.org/D22636
Notes
Notes:
svn path=/head/; revision=355514
-rw-r--r-- | sys/vm/vm_object.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/sys/vm/vm_object.c b/sys/vm/vm_object.c index e703029e8b49..e04427434fff 100644 --- a/sys/vm/vm_object.c +++ b/sys/vm/vm_object.c @@ -2225,8 +2225,6 @@ void vm_object_set_writeable_dirty(vm_object_t object) { - VM_OBJECT_ASSERT_LOCKED(object); - /* Only set for vnodes & tmpfs */ if (object->type != OBJT_VNODE && (object->flags & OBJ_TMPFS_NODE) == 0) |