Remove calls to pmap_clear_modify() in the swap_pager, fixing a kernel panic.
authorMatthew Dillon <dillon@dragonflybsd.org>
Thu, 20 Mar 2008 06:02:50 +0000 (06:02 +0000)
committerMatthew Dillon <dillon@dragonflybsd.org>
Thu, 20 Mar 2008 06:02:50 +0000 (06:02 +0000)
commit4530a3aaa95f1a6fca0ede759e74a7bb354376ba
tree8cf1dcc1bcd642ab15c6c2f4213d9e62130ebe93
parentda804f11b2df6adaa232ff7ddd1a0a0b3e311ecd
Remove calls to pmap_clear_modify() in the swap_pager, fixing a kernel panic.
The modify bit is cleared by the pageout code's call to vm_page_protect()
and does not need to be cleared again.

The pmap code cannot safely access non-kernel pmaps from the interrupt
service routine it uses to process the asynchronous I/O completion.  These
non-kernel pmaps are present because the pageout code protects the page
with VM_PROT_READ (which is desireable) rather then VM_PROT_NONE.
sys/vm/swap_pager.c
sys/vm/vm_pageout.c