* [PATCH] fix for "lib/stackdepot: allow users to evict stack traces"
@ 2023-10-26 22:33 andrey.konovalov
2023-10-26 23:07 ` Andrew Morton
0 siblings, 1 reply; 3+ messages in thread
From: andrey.konovalov @ 2023-10-26 22:33 UTC (permalink / raw)
To: Andrew Morton
Cc: Andrey Konovalov, Marco Elver, Alexander Potapenko,
Dmitry Vyukov, Vlastimil Babka, kasan-dev, Evgenii Stepanov,
Oscar Salvador, linux-mm, linux-kernel, Andrey Konovalov
From: Andrey Konovalov <andreyknvl@google.com>
Commit "lib/stackdepot: allow users to evict stack traces" adds another
user for depot_fetch_stack, which holds a write lock. Thus, we need to
update the lockdep annotation.
Signed-off-by: Andrey Konovalov <andreyknvl@google.com>
---
lib/stackdepot.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/lib/stackdepot.c b/lib/stackdepot.c
index 3a8f045696fd..cf707ff32d7d 100644
--- a/lib/stackdepot.c
+++ b/lib/stackdepot.c
@@ -388,7 +388,7 @@ static struct stack_record *depot_fetch_stack(depot_stack_handle_t handle)
size_t offset = parts.offset << DEPOT_STACK_ALIGN;
struct stack_record *stack;
- lockdep_assert_held_read(&pool_rwlock);
+ lockdep_assert_held(&pool_rwlock);
if (parts.pool_index > pools_num) {
WARN(1, "pool index %d out of bounds (%d) for stack id %08x\n",
--
2.25.1
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH] fix for "lib/stackdepot: allow users to evict stack traces"
2023-10-26 22:33 [PATCH] fix for "lib/stackdepot: allow users to evict stack traces" andrey.konovalov
@ 2023-10-26 23:07 ` Andrew Morton
2023-10-26 23:20 ` Andrey Konovalov
0 siblings, 1 reply; 3+ messages in thread
From: Andrew Morton @ 2023-10-26 23:07 UTC (permalink / raw)
To: andrey.konovalov
Cc: Andrey Konovalov, Marco Elver, Alexander Potapenko,
Dmitry Vyukov, Vlastimil Babka, kasan-dev, Evgenii Stepanov,
Oscar Salvador, linux-mm, linux-kernel, Andrey Konovalov
On Fri, 27 Oct 2023 00:33:40 +0200 andrey.konovalov@linux.dev wrote:
> From: Andrey Konovalov <andreyknvl@google.com>
>
> Commit "lib/stackdepot: allow users to evict stack traces" adds another
> user for depot_fetch_stack, which holds a write lock. Thus, we need to
> update the lockdep annotation.
>
We're at -rc7, which is rather late to be merging material such as this
patchset. Please resend it all after -rc1 and include this fixup,
thanks.
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH] fix for "lib/stackdepot: allow users to evict stack traces"
2023-10-26 23:07 ` Andrew Morton
@ 2023-10-26 23:20 ` Andrey Konovalov
0 siblings, 0 replies; 3+ messages in thread
From: Andrey Konovalov @ 2023-10-26 23:20 UTC (permalink / raw)
To: Andrew Morton
Cc: andrey.konovalov, Marco Elver, Alexander Potapenko,
Dmitry Vyukov, Vlastimil Babka, kasan-dev, Evgenii Stepanov,
Oscar Salvador, linux-mm, linux-kernel, Andrey Konovalov
On Fri, Oct 27, 2023 at 1:07 AM Andrew Morton <akpm@linux-foundation.org> wrote:
>
> On Fri, 27 Oct 2023 00:33:40 +0200 andrey.konovalov@linux.dev wrote:
>
> > From: Andrey Konovalov <andreyknvl@google.com>
> >
> > Commit "lib/stackdepot: allow users to evict stack traces" adds another
> > user for depot_fetch_stack, which holds a write lock. Thus, we need to
> > update the lockdep annotation.
> >
>
> We're at -rc7, which is rather late to be merging material such as this
> patchset. Please resend it all after -rc1 and include this fixup,
> thanks.
Ack.
I might send a few more additions to the series for review before
then, but then resend everything together after rc1.
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2023-10-26 23:20 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-10-26 22:33 [PATCH] fix for "lib/stackdepot: allow users to evict stack traces" andrey.konovalov
2023-10-26 23:07 ` Andrew Morton
2023-10-26 23:20 ` Andrey Konovalov
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox