summaryrefslogtreecommitdiffstats
path: root/sys/dev/asr/asr.c
diff options
context:
space:
mode:
authoralc <alc@FreeBSD.org>2009-05-09 08:30:44 +0000
committeralc <alc@FreeBSD.org>2009-05-09 08:30:44 +0000
commit2902f54fb4ea28264b15fd28d0d6c81fd524cebe (patch)
treefd771168b6dc023886bb944cc8f9f58bba502563 /sys/dev/asr/asr.c
parentc2d44ad8f8ba6650acee0ef9f2be29c218e4a591 (diff)
downloadFreeBSD-src-2902f54fb4ea28264b15fd28d0d6c81fd524cebe.zip
FreeBSD-src-2902f54fb4ea28264b15fd28d0d6c81fd524cebe.tar.gz
Fix a race involving vnode_pager_input_smlfs(). Specifically, in the case
that vnode_pager_input_smlfs() zeroes the page, it should not mark the page as valid until after the page is zeroed. Otherwise, the page could be mapped for read access (e.g., by vm_map_pmap_enter()) before the page is zeroed. Reviewed by: tegge Eliminate gratuitous clearing of the page's dirty mask by vnode_pager_input_smlfs(). Instead, assert that the page is clean. Reviewed by: tegge Eliminate some blank lines. Eliminate pointless calls to pmap_clear_modify() and vm_page_undirty() from vnode_pager_input_old(). The page is not mapped. Therefore, it cannot have any page table entries that are modified. Eliminate an incorrect comment from vnode_pager_generic_getpages().
Diffstat (limited to 'sys/dev/asr/asr.c')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud