[<prev] [next>] [day] [month] [year] [list]
Message-Id: <20191216131415.23508-1-jbi.octave@gmail.com>
Date: Mon, 16 Dec 2019 13:14:15 +0000
From: Jules Irenge <jbi.octave@...il.com>
To: bokun.feng@...il.com
Cc: peterz@...radead.org, mingo@...hat.com, acme@...nel.org,
mark.rutland@....com, alexander.shishkin@...ux.intel.com,
jolsa@...hat.com, namhyung@...nel.org,
linux-kernel@...r.kernel.org, Jules Irenge <jbi.octave@...il.com>
Subject: [PATCH v2] kernel: events: add releases() annotation
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@...il.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
Powered by blists - more mailing lists