]> www.infradead.org Git - users/jedix/linux-maple.git/commit
lib/stackdepot: fix and clean-up atomic annotations
authorAndrey Konovalov <andreyknvl@google.com>
Mon, 20 Nov 2023 17:47:05 +0000 (18:47 +0100)
committerAndrew Morton <akpm@linux-foundation.org>
Mon, 20 Nov 2023 21:16:38 +0000 (13:16 -0800)
commit880c3705136403701e87fc10e9248c3d4f4727f8
tree7fe8b0342ce096e47b8c5d8003dfe0c40d68d61e
parent47364b2b475ad569a4470d9b153cb902622d5bc5
lib/stackdepot: fix and clean-up atomic annotations

Drop smp_load_acquire from next_pool_required in depot_init_pool, as both
depot_init_pool and the all smp_store_release's to this variable are
executed under the stack depot lock.

Also simplify and clean up comments accompanying the use of atomic
accesses in the stack depot code.

Link: https://lkml.kernel.org/r/c118ef044d8db80248d9e1f14592c72e8429e9d9.1700502145.git.andreyknvl@google.com
Signed-off-by: Andrey Konovalov <andreyknvl@google.com>
Reviewed-by: Alexander Potapenko <glider@google.com>
Cc: Dmitry Vyukov <dvyukov@google.com>
Cc: Evgenii Stepanov <eugenis@google.com>
Cc: Marco Elver <elver@google.com>
Cc: Oscar Salvador <osalvador@suse.de>
Cc: Vlastimil Babka <vbabka@suse.cz>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
lib/stackdepot.c