All of lore.kernel.org
 help / color / mirror / Atom feed
* [Xenomai] [PATCH] copperplate: Remove redundant cleanups
@ 2018-04-13 17:49 Jan Kiszka
  0 siblings, 0 replies; only message in thread
From: Jan Kiszka @ 2018-04-13 17:49 UTC (permalink / raw)
  To: Xenomai

We are running this section with cancellation deferred, so no
termination possible, thus nothing to clean up.

Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com>
---
 lib/copperplate/traceobj.c | 2 --
 1 file changed, 2 deletions(-)

diff --git a/lib/copperplate/traceobj.c b/lib/copperplate/traceobj.c
index d10c47905..8a3f4f5e6 100644
--- a/lib/copperplate/traceobj.c
+++ b/lib/copperplate/traceobj.c
@@ -200,11 +200,9 @@ static void dump_marks_on_error(struct traceobj *trobj)
 
 	CANCEL_DEFER(svc);
 
-	push_cleanup_lock(&trobj->lock);
 	read_lock(&trobj->lock);
 	dump_marks(trobj);
 	read_unlock(&trobj->lock);
-	pop_cleanup_lock(&trobj->lock);
 
 	CANCEL_RESTORE(svc);
 }
-- 
2.13.6


^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2018-04-13 17:49 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-04-13 17:49 [Xenomai] [PATCH] copperplate: Remove redundant cleanups Jan Kiszka

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.