summaryrefslogtreecommitdiff
path: root/include/drm/drm_cache.h
diff options
context:
space:
mode:
authorJan Kara <jack@suse.cz>2016-08-10 17:10:28 +0200
committerDan Williams <dan.j.williams@intel.com>2016-12-26 20:29:24 -0800
commite3fce68cdbed297d927e993b3ea7b8b1cee545da (patch)
tree52e8c6f6bea775cb623cfca46012b91657b7dc47 /include/drm/drm_cache.h
parentc6dcf52c23d2d3fb5235cec42d7dd3f786b87d55 (diff)
dax: Avoid page invalidation races and unnecessary radix tree traversals
Currently dax_iomap_rw() takes care of invalidating page tables and evicting hole pages from the radix tree when write(2) to the file happens. This invalidation is only necessary when there is some block allocation resulting from write(2). Furthermore in current place the invalidation is racy wrt page fault instantiating a hole page just after we have invalidated it. So perform the page invalidation inside dax_iomap_actor() where we can do it only when really necessary and after blocks have been allocated so nobody will be instantiating new hole pages anymore. Reviewed-by: Christoph Hellwig <hch@lst.de> Reviewed-by: Ross Zwisler <ross.zwisler@linux.intel.com> Signed-off-by: Jan Kara <jack@suse.cz> Signed-off-by: Dan Williams <dan.j.williams@intel.com>
Diffstat (limited to 'include/drm/drm_cache.h')
0 files changed, 0 insertions, 0 deletions