lkml.org 
[lkml]   [2011]   [Jun]   [29]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    /
    Date
    From
    SubjectRe: workqueue question.
    Hello,

    On Tue, Jun 28, 2011 at 11:56:39AM -0700, Ben Greear wrote:
    > Is it OK to call INIT_WORK(&foo, bar)
    > if we are currently being called by the work-queue
    > using foo?

    Yes, but if flush_work*() races with it, flushing can finish before
    execution is complete.

    > Also, is it valid to free the memory containing foo
    > in a workqueue callback?

    Yeap.

    --
    tejun


    \
     
     \ /
      Last update: 2011-06-29 10:45    [W:0.026 / U:0.284 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site