[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20090415110937.GA27727@elte.hu>
Date: Wed, 15 Apr 2009 13:09:37 +0200
From: Ingo Molnar <mingo@...e.hu>
To: Oleg Nesterov <oleg@...hat.com>
Cc: Frederic Weisbecker <fweisbec@...il.com>,
KOSAKI Motohiro <kosaki.motohiro@...fujitsu.com>,
Zhaolei <zhaolei@...fujitsu.com>,
Steven Rostedt <rostedt@...dmis.org>,
Tom Zanussi <tzanussi@...il.com>, linux-kernel@...r.kernel.org
Subject: Re: [PATCH v2 2/4] ftrace: introduce workqueue_handler_exit
tracepoint and rename workqueue_execution to workqueue_handler_entry
* Oleg Nesterov <oleg@...hat.com> wrote:
> > > lock_map_acquire(&lockdep_map);
> > > + trace_workqueue_handler_entry(cwq->thread, work);
> > > f(work);
> > > + trace_workqueue_handler_exit(cwq->thread, work);
>
> This doesn't look right. We must not use "work" after f(work).
> work->func() can kfree its work.
We can use it as long as we use it as a 'cookie' - i.e. an
identifier for visualization/statistics, but dont actually
dereference it, right?
Ingo
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists