summaryrefslogtreecommitdiff
path: root/net/lapb/lapb_timer.c
diff options
context:
space:
mode:
authorMatthew Wilcox <willy@infradead.org>2018-11-16 22:37:06 +0300
committerMatthew Wilcox <willy@infradead.org>2018-11-17 00:38:50 +0300
commitc5bbd4515a05f8acb7e6ab6297044a529762cbf5 (patch)
treed48233766456a2fb166f583c87d2fb4b36d618ec /net/lapb/lapb_timer.c
parent7ae2ea7dc45e8250a74cfaaecdce578427669ae5 (diff)
downloadlinux-c5bbd4515a05f8acb7e6ab6297044a529762cbf5.tar.xz
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: 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>
Diffstat (limited to 'net/lapb/lapb_timer.c')
0 files changed, 0 insertions, 0 deletions