]> git.baikalelectronics.ru Git - kernel.git/commit
drivers/hwspinlock: use correct radix tree API
authorMatthew Wilcox <willy@linux.intel.com>
Sat, 21 May 2016 00:03:01 +0000 (17:03 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Sat, 21 May 2016 00:58:30 +0000 (17:58 -0700)
commit42143c8a8cd539e87b38a9e57030a9ac64dfc2dc
treed7e4d94f0cc2e3c224949de671f2513fff0680db
parent0c436a4ee9b94fe1bbc6afbe879fc9a68206a4f2
drivers/hwspinlock: use correct radix tree API

radix_tree_is_indirect_ptr() is an internal API.  The correct call to
use is radix_tree_deref_retry() which has the appropriate unlikely()
annotation.

Fixes: 4fca49afcfb4 ("drivers/hwspinlock: fix race between radix tree insertion and lookup")
Signed-off-by: Matthew Wilcox <willy@linux.intel.com>
Cc: Konstantin Khlebnikov <koct9i@gmail.com>
Cc: Kirill Shutemov <kirill.shutemov@linux.intel.com>
Cc: Jan Kara <jack@suse.com>
Cc: Neil Brown <neilb@suse.de>
Cc: Ross Zwisler <ross.zwisler@linux.intel.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
drivers/hwspinlock/hwspinlock_core.c