zhong jiang e4cc9c81e2 memfd: Use radix_tree_deref_slot_protected to avoid the warning.
The commit 99b45e7a1ba1 ("memfd: Fix locking when tagging pins")
introduces the following warning messages.

*WARNING: suspicious RCU usage in memfd_wait_for_pins*

It is because we still use radix_tree_deref_slot without read_rcu_lock.
We should use radix_tree_deref_slot_protected instead in the case.

Cc: stable@vger.kernel.org
Fixes: 99b45e7a1ba1 ("memfd: Fix locking when tagging pins")
Signed-off-by: zhong jiang <zhongjiang@huawei.com>
Reviewed-by: Matthew Wilcox (Oracle) <willy@infradead.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2019-11-20 18:47:53 +01:00
..
2018-06-07 17:34:36 -07:00
2019-04-05 22:32:58 +02:00
2019-10-11 18:20:58 +02:00
2018-12-01 09:37:33 +01:00
2018-02-06 18:32:48 -08:00