diff options
author | kib <kib@FreeBSD.org> | 2014-08-06 19:34:03 +0000 |
---|---|---|
committer | kib <kib@FreeBSD.org> | 2014-08-06 19:34:03 +0000 |
commit | 61cc19eab898f54f8ce19c0b4ff0099aa9e573c0 (patch) | |
tree | 187fbb1f4f6111da08e21ecb887771103e2282bd | |
parent | a39918dab4c1ed3e65ec2b9ee9308745cefdbddc (diff) | |
download | FreeBSD-src-61cc19eab898f54f8ce19c0b4ff0099aa9e573c0.zip FreeBSD-src-61cc19eab898f54f8ce19c0b4ff0099aa9e573c0.tar.gz |
The vm_pager_page_unswapped() pager op is only implemented for the
swap pager. Swap pager uses a private mutex to protect swap metadata,
and does not rely on the vm object lock to ensure integrity of it.
Weaken the requirement for the vm object lock by only asserting locked
object in vm_pager_page_unswapped(), instead of locked exclusively.
Reviewed by: alc
Sponsored by: The FreeBSD Foundation
MFC after: 1 week
-rw-r--r-- | sys/vm/vm_pager.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/vm/vm_pager.h b/sys/vm/vm_pager.h index aa1b7f0..62265a2 100644 --- a/sys/vm/vm_pager.h +++ b/sys/vm/vm_pager.h @@ -187,7 +187,7 @@ static __inline void vm_pager_page_unswapped(vm_page_t m) { - VM_OBJECT_ASSERT_WLOCKED(m->object); + VM_OBJECT_ASSERT_LOCKED(m->object); if (pagertab[m->object->type]->pgo_pageunswapped) (*pagertab[m->object->type]->pgo_pageunswapped)(m); } |