summaryrefslogtreecommitdiffstats
path: root/sys/ufs
diff options
context:
space:
mode:
authorattilio <attilio@FreeBSD.org>2013-02-10 01:04:10 +0000
committerattilio <attilio@FreeBSD.org>2013-02-10 01:04:10 +0000
commitcde657f5b102f59e8b6ea59855aeb883fac1a7dd (patch)
tree4f85468d5966f3a635e6980630a054b4a619facd /sys/ufs
parentee084b4baf8d84c6793da2900235f815e38b9ded (diff)
downloadFreeBSD-src-cde657f5b102f59e8b6ea59855aeb883fac1a7dd.zip
FreeBSD-src-cde657f5b102f59e8b6ea59855aeb883fac1a7dd.tar.gz
Remove a racy checks on resident and cached pages for
tmpfs_mapped{read, write}() functions: - tmpfs_mapped{read, write}() are only called within VOP_{READ, WRITE}(), which check before-hand to work only on valid VREG vnodes. Also the vnode is locked for the duration of the work, making vnode reclaiming impossible, during the operation. Hence, vobj can never be NULL. - Currently check on resident pages and cached pages without vm object lock held is racy and can do even more harm than good, as a page could be transitioning between these 2 pools and then be skipped entirely. Skip the checks as lookups on empty splay trees are very cheap. Discussed with: alc Tested by: flo MFC after: 2 weeks
Diffstat (limited to 'sys/ufs')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud