dax: Remove optimisation from dax_lock_mapping_entry
authorMatthew Wilcox <willy@infradead.org>
Tue, 6 Nov 2018 18:11:57 +0000 (13:11 -0500)
committerMatthew Wilcox <willy@infradead.org>
Fri, 16 Nov 2018 21:38:49 +0000 (16:38 -0500)
commit6d7cd8c1373746a93dc868ee9d38a82df78b38aa
tree9093681b9b452e62a95805b3e00c2c46eef3d50f
parent5404a7f1c21cfda061712bedf2d06cc0f6c755e9
dax: Remove optimisation from dax_lock_mapping_entry

Skipping some of the revalidation after we sleep can lead to returning
a mapping which has already been freed.  Just drop this optimisation.

Reported-by: Dan Williams <dan.j.williams@intel.com>
Fixes: 9f32d221301c ("dax: Convert dax_lock_mapping_entry to XArray")
Signed-off-by: Matthew Wilcox <willy@infradead.org>
fs/dax.c