From: Dennis Zhou <dennisz@fb.com> To: Tejun Heo <tj@kernel.org>, Christoph Lameter <cl@linux.com> Cc: <linux-mm@kvack.org>, <linux-kernel@vger.kernel.org>, <kernel-team@fb.com>, Dennis Zhou <dennisz@fb.com> Subject: [PATCH 1/4] percpu: add missing lockdep_assert_held to func pcpu_free_area Date: Mon, 19 Jun 2017 19:28:29 -0400 [thread overview] Message-ID: <20170619232832.27116-2-dennisz@fb.com> (raw) In-Reply-To: <20170619232832.27116-1-dennisz@fb.com> Add a missing lockdep_assert_held for pcpu_lock to improve consistency and safety throughout mm/percpu.c. Signed-off-by: Dennis Zhou <dennisz@fb.com> --- mm/percpu.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/mm/percpu.c b/mm/percpu.c index e0aa8ae..f94a5eb 100644 --- a/mm/percpu.c +++ b/mm/percpu.c @@ -672,6 +672,8 @@ static void pcpu_free_area(struct pcpu_chunk *chunk, int freeme, int to_free = 0; int *p; + lockdep_assert_held(&pcpu_lock); + freeme |= 1; /* we are searching for <given offset, in use> pair */ i = 0; -- 2.9.3
WARNING: multiple messages have this Message-ID (diff)
From: Dennis Zhou <dennisz@fb.com> To: Tejun Heo <tj@kernel.org>, Christoph Lameter <cl@linux.com> Cc: linux-mm@kvack.org, linux-kernel@vger.kernel.org, kernel-team@fb.com, Dennis Zhou <dennisz@fb.com> Subject: [PATCH 1/4] percpu: add missing lockdep_assert_held to func pcpu_free_area Date: Mon, 19 Jun 2017 19:28:29 -0400 [thread overview] Message-ID: <20170619232832.27116-2-dennisz@fb.com> (raw) In-Reply-To: <20170619232832.27116-1-dennisz@fb.com> Add a missing lockdep_assert_held for pcpu_lock to improve consistency and safety throughout mm/percpu.c. Signed-off-by: Dennis Zhou <dennisz@fb.com> --- mm/percpu.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/mm/percpu.c b/mm/percpu.c index e0aa8ae..f94a5eb 100644 --- a/mm/percpu.c +++ b/mm/percpu.c @@ -672,6 +672,8 @@ static void pcpu_free_area(struct pcpu_chunk *chunk, int freeme, int to_free = 0; int *p; + lockdep_assert_held(&pcpu_lock); + freeme |= 1; /* we are searching for <given offset, in use> pair */ i = 0; -- 2.9.3 -- To unsubscribe, send a message with 'unsubscribe linux-mm' in the body to majordomo@kvack.org. For more info on Linux MM, see: http://www.linux-mm.org/ . Don't email: <a href=mailto:"dont@kvack.org"> email@kvack.org </a>
next prev parent reply other threads:[~2017-06-19 23:28 UTC|newest] Thread overview: 25+ messages / expand[flat|nested] mbox.gz Atom feed top 2017-06-19 23:28 [PATCH 0/4] percpu: add basic stats and tracepoints to percpu allocator Dennis Zhou 2017-06-19 23:28 ` Dennis Zhou 2017-06-19 23:28 ` Dennis Zhou [this message] 2017-06-19 23:28 ` [PATCH 1/4] percpu: add missing lockdep_assert_held to func pcpu_free_area Dennis Zhou 2017-06-19 23:28 ` [PATCH 2/4] percpu: migrate percpu data structures to internal header Dennis Zhou 2017-06-19 23:28 ` Dennis Zhou 2017-06-19 23:28 ` [PATCH 3/4] percpu: expose statistics about percpu memory via debugfs Dennis Zhou 2017-06-19 23:28 ` Dennis Zhou 2017-07-07 8:16 ` Geert Uytterhoeven 2017-07-07 8:16 ` Geert Uytterhoeven 2017-07-08 20:33 ` Dennis Zhou 2017-07-08 20:33 ` Dennis Zhou 2017-06-19 23:28 ` [PATCH 4/4] percpu: add tracepoint support for percpu memory Dennis Zhou 2017-06-19 23:28 ` Dennis Zhou 2017-06-21 16:18 ` Levin, Alexander (Sasha Levin) 2017-06-21 16:18 ` Levin, Alexander (Sasha Levin) 2017-06-21 17:52 ` [PATCH 1/1] percpu: fix early calls for spinlock in pcpu_stats Dennis Zhou 2017-06-21 17:52 ` Dennis Zhou 2017-06-21 17:54 ` Tejun Heo 2017-06-21 17:54 ` Tejun Heo 2017-06-20 17:45 ` [PATCH 0/4] percpu: add basic stats and tracepoints to percpu allocator Tejun Heo 2017-06-20 17:45 ` Tejun Heo 2017-06-20 19:12 ` Dennis Zhou 2017-06-20 19:32 ` Tejun Heo 2017-06-20 19:32 ` Tejun Heo
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=20170619232832.27116-2-dennisz@fb.com \ --to=dennisz@fb.com \ --cc=cl@linux.com \ --cc=kernel-team@fb.com \ --cc=linux-kernel@vger.kernel.org \ --cc=linux-mm@kvack.org \ --cc=tj@kernel.org \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: linkBe sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes, see mirroring instructions on how to clone and mirror all data and code used by this external index.