Forum | Documentation | Website | Blog

Skip to content
Snippets Groups Projects
Commit c5bbd451 authored by Matthew Wilcox's avatar Matthew Wilcox
Browse files

dax: Reinstate RCU protection of inode


For the device-dax case, it is possible that the inode can go away
underneath us.  The rcu_read_lock() was there to prevent it from
being freed, and not (as I thought) to protect the tree.  Bring back
the rcu_read_lock() protection.  Also add a little kernel-doc; while
this function is not exported to modules, it is used from outside dax.c

Reported-by: default avatarDan Williams <dan.j.williams@intel.com>
Fixes: 9f32d221

 ("dax: Convert dax_lock_mapping_entry to XArray")
Signed-off-by: default avatarMatthew Wilcox <willy@infradead.org>
parent 7ae2ea7d
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment