]> www.infradead.org Git - users/jedix/linux-maple.git/commit
maple_tree: Detect dead nodes in mas_start()
authorLiam R. Howlett <Liam.Howlett@Oracle.com>
Thu, 24 Nov 2022 15:48:23 +0000 (10:48 -0500)
committerLiam R. Howlett <Liam.Howlett@oracle.com>
Tue, 13 Dec 2022 21:03:40 +0000 (16:03 -0500)
commitb15513cf9e8f7853112b36921177acc16560e3b6
tree1d6c28e857d5350ee465a1726cf31009347c8eb2
parent07ea44554c32fcc94fa95b3c339b8707a63822f7
maple_tree: Detect dead nodes in mas_start()

When initially starting a search, the root node may already be in the
process of being replaced in RCU mode.  Detect and restart the walk if
this is the case.

Signed-off-by: Liam R. Howlett <Liam.Howlett@oracle.com>
lib/maple_tree.c