summaryrefslogtreecommitdiff
path: root/drivers/net
diff options
context:
space:
mode:
authorJan Kara <jack@suse.cz>2016-08-10 17:10:28 +0200
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2017-12-09 22:01:49 +0100
commit771c831c1bdef159ff6fa01a6c49f0890b1f3066 (patch)
tree637aa3698b4cc70eee58cfacc8155205b36bf46d /drivers/net
parent2383ba62b5352e02df75d3b6dff2dfd156ce8f1c (diff)
dax: Avoid page invalidation races and unnecessary radix tree traversals
[ Upstream commit e3fce68cdbed297d927e993b3ea7b8b1cee545da ] 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> Signed-off-by: Sasha Levin <alexander.levin@verizon.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/net')
0 files changed, 0 insertions, 0 deletions