From: Jules Irenge <jbi.octave@gmail.com>
To: bokun.feng@gmail.com
Cc: peterz@infradead.org, mingo@redhat.com, acme@kernel.org,
mark.rutland@arm.com, alexander.shishkin@linux.intel.com,
jolsa@redhat.com, namhyung@kernel.org,
linux-kernel@vger.kernel.org, Jules Irenge <jbi.octave@gmail.com>
Subject: [PATCH v2] kernel: events: add releases() annotation
Date: Mon, 16 Dec 2019 13:14:15 +0000 [thread overview]
Message-ID: <20191216131415.23508-1-jbi.octave@gmail.com> (raw)
Add releases() annotation to remove issue detected by sparse tool.
warning: context imbalance in perf_output_end() - unexpected unlock
Signed-off-by: Jules Irenge <jbi.octave@gmail.com>
---
Change
Added RCU as an argument in the releases() annotation
kernel/events/ring_buffer.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/kernel/events/ring_buffer.c b/kernel/events/ring_buffer.c
index 7ffd5c763f93..3381e70fb0f5 100644
--- a/kernel/events/ring_buffer.c
+++ b/kernel/events/ring_buffer.c
@@ -295,6 +295,7 @@ unsigned int perf_output_skip(struct perf_output_handle *handle,
}
void perf_output_end(struct perf_output_handle *handle)
+ __releases(RCU)
{
perf_output_put_handle(handle);
rcu_read_unlock();
--
2.23.0
reply other threads:[~2019-12-16 13:14 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
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=20191216131415.23508-1-jbi.octave@gmail.com \
--to=jbi.octave@gmail.com \
--cc=acme@kernel.org \
--cc=alexander.shishkin@linux.intel.com \
--cc=bokun.feng@gmail.com \
--cc=jolsa@redhat.com \
--cc=linux-kernel@vger.kernel.org \
--cc=mark.rutland@arm.com \
--cc=mingo@redhat.com \
--cc=namhyung@kernel.org \
--cc=peterz@infradead.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: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®