OSDN Git Service

lib/stackdepot: annotate depot_init_pool and depot_alloc_stack
authorAndrey Konovalov <andreyknvl@google.com>
Fri, 10 Feb 2023 21:16:01 +0000 (22:16 +0100)
committerAndrew Morton <akpm@linux-foundation.org>
Fri, 17 Feb 2023 04:43:51 +0000 (20:43 -0800)
commitcd0fc64e76844758b78d0fd376ae3ca4fd802049
tree784b5d5893215d53e3bd3193e6a0ce82bb94a32a
parent514d5c557b8b590a80f0569af5ae5f4d455ecef2
lib/stackdepot: annotate depot_init_pool and depot_alloc_stack

Clean up the exisiting comments and add new ones to depot_init_pool and
depot_alloc_stack.

As a part of the clean-up, remove mentions of which variable is accessed
by smp_store_release and smp_load_acquire: it is clear as is from the
code.

Link: https://lkml.kernel.org/r/f80b02951364e6b40deda965b4003de0cd1a532d.1676063693.git.andreyknvl@google.com
Signed-off-by: Andrey Konovalov <andreyknvl@google.com>
Reviewed-by: Alexander Potapenko <glider@google.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
lib/stackdepot.c