diff options
author | Alan Cox <alc@FreeBSD.org> | 2002-07-31 07:27:08 +0000 |
---|---|---|
committer | Alan Cox <alc@FreeBSD.org> | 2002-07-31 07:27:08 +0000 |
commit | 67c1fae92ede8d0e9a9ea5334791e93e5b92e80d (patch) | |
tree | d49e59d08a457a2d70c935629da238b02279c1fd /sys/vm/vm_page.c | |
parent | c3a0d1d4e1ef73c5c179adb4b40be67354cc4e0d (diff) | |
download | src-67c1fae92ede8d0e9a9ea5334791e93e5b92e80d.tar.gz src-67c1fae92ede8d0e9a9ea5334791e93e5b92e80d.zip |
o Lock page accesses by vm_page_io_start() with the page queues lock.
o Assert that the page queues lock is held in vm_page_io_start().
Notes
Notes:
svn path=/head/; revision=101019
Diffstat (limited to 'sys/vm/vm_page.c')
-rw-r--r-- | sys/vm/vm_page.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/vm/vm_page.c b/sys/vm/vm_page.c index 9acd481c2bed..7286d1390916 100644 --- a/sys/vm/vm_page.c +++ b/sys/vm/vm_page.c @@ -396,7 +396,8 @@ vm_page_wakeup(vm_page_t m) void vm_page_io_start(vm_page_t m) { - GIANT_REQUIRED; + + mtx_assert(&vm_page_queue_mtx, MA_OWNED); m->busy++; } |