lkml.org 
[lkml]   [2009]   [Apr]   [21]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    /
    Date
    From
    SubjectRe: [PATCH v3 1/1] ftrace, workqueuetrace: Make workqueuetracepoints use TRACE_EVENT macro
    On Tue, Apr 21, 2009 at 05:50:32PM +0200, Oleg Nesterov wrote:
    > On 04/21, Oleg Nesterov wrote:
    > >
    > > On 04/21, Frederic Weisbecker wrote:
    > > >
    > > > For example,
    > > >
    > > > - the user opens the stat file
    > > > - then the entries are loaded and sorted into memory
    > > > - one of the workqueues is destroyed
    >
    > Hmm. And what protects cws when, say, workqueue_stat_show() is called?
    > Can't we race with probe_workqueue_destruction()->kfree() ?
    >
    > Oleg.
    >


    Indeed. I plan to implement a waitqueue on the stat tracing framework
    to fix it (per tracer of course).

    Thanks.



    \
     
     \ /
      Last update: 2009-04-21 20:35    [W:0.029 / U:0.000 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site