]> www.infradead.org Git - users/jedix/linux-maple.git/commit
rculist: add list_bidir_{del,prev}_rcu()
authorChristian Brauner <brauner@kernel.org>
Thu, 12 Dec 2024 23:03:43 +0000 (00:03 +0100)
committerChristian Brauner <brauner@kernel.org>
Thu, 9 Jan 2025 15:58:52 +0000 (16:58 +0100)
commit67d676bb135cd4de9647616e73cfd059ef57c9a6
tree872458a34af5ace9a37e4a2276f91c7811600ca8
parent5dcbd85d35515532c93b337a3f8be54937aeea8a
rculist: add list_bidir_{del,prev}_rcu()

Currently there is no primitive for retrieving the previous list member.
To do this we need a new deletion primitive that doesn't poison the prev
pointer and a corresponding retrieval helper. Note that it is not valid
to ues both list_del_rcu() and list_bidir_del_rcu() on the same list.

Link: https://lore.kernel.org/r/20241213-work-mount-rbtree-lockless-v3-4-6e3cdaf9b280@kernel.org
Reviewed-by: Paul E. McKenney <paulmck@kernel.org>
Reviewed-by: Jeff Layton <jlayton@kernel.org>
Suggested-by: Paul E. McKenney <paulmck@kernel.org>
Signed-off-by: Christian Brauner <brauner@kernel.org>
include/linux/rculist.h