projects
/
lttng-tools.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Remove unnecessary RCU read lock
[lttng-tools.git]
/
src
/
bin
/
lttng-sessiond
/
agent.c
diff --git
a/src/bin/lttng-sessiond/agent.c
b/src/bin/lttng-sessiond/agent.c
index ca2d4c872931632f4e5d46cb9c6b17b6b3d0d8ed..0821630865106182365cd404fecaf0cd9bcb64cc 100644
(file)
--- a/
src/bin/lttng-sessiond/agent.c
+++ b/
src/bin/lttng-sessiond/agent.c
@@
-802,7
+802,7
@@
struct agent *agent_create(enum lttng_domain_type domain)
int ret;
struct agent *agt;
int ret;
struct agent *agt;
- agt = zmalloc(sizeof(
*ag
t));
+ agt = zmalloc(sizeof(
struct agen
t));
if (!agt) {
goto error;
}
if (!agt) {
goto error;
}
@@
-861,10
+861,7
@@
void agent_add_event(struct agent_event *event, struct agent *agt)
assert(agt->events);
DBG3("Agent adding event %s", event->name);
assert(agt->events);
DBG3("Agent adding event %s", event->name);
-
- rcu_read_lock();
add_unique_agent_event(agt->events, event);
add_unique_agent_event(agt->events, event);
- rcu_read_unlock();
agt->being_used = 1;
}
agt->being_used = 1;
}
This page took
0.024242 seconds
and
4
git commands to generate.