]> www.infradead.org Git - users/jedix/linux-maple.git/commit
mm: add RCU annotation to pte_offset_map(_lock)
authorPetr Malat <oss@malat.biz>
Tue, 10 Dec 2024 00:06:04 +0000 (01:06 +0100)
committerAndrew Morton <akpm@linux-foundation.org>
Thu, 19 Dec 2024 03:04:43 +0000 (19:04 -0800)
commit31c5629920b82ddf66059f20f79be2bc00c4197b
tree811d1250cbdda9a97dbca04cae7be1e47b668a5b
parent42c4e4b20d9c4651903c4afc53a4ff18b7451b3e
mm: add RCU annotation to pte_offset_map(_lock)

RCU lock is taken by ___pte_offset_map() unless it returns NULL.  Add this
information to its inline callers to avoid sparse warning about context
imbalance in pte_unmap().

Link: https://lkml.kernel.org/r/20241210000604.700710-1-oss@malat.biz
Signed-off-by: Petr Malat <oss@malat.biz>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
include/linux/mm.h
mm/pgtable-generic.c