lkml.org 
[lkml]   [2009]   [Sep]   [1]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    /
    Date
    From
    SubjectRe: [PATCH 2/3] tracing: block-able ring_buffer consumer
    On Wed, Sep 02, 2009 at 01:05:10AM +0200, Frederic Weisbecker wrote:
    > void poll_wait_pipe(struct trace_iterator *iter)
    > {
    > set_current_state(TASK_INTERRUPTIBLE);
    > /* sleep for 100 msecs, and try again. */
    > schedule_timeout(HZ / 10);
    > }
    >
    > On the worst case the reader will wait for 1/100 secs
    > (the comment is wrong).


    No the comment is not wrong. It's just that I really suck in math :-)


    >
    > You can probably use the same thing for ring buffer splice
    > and poll waiters.
    >
    > Frederic.
    >



    \
     
     \ /
      Last update: 2009-09-02 01:15    [W:0.021 / U:5.924 seconds]
    ©2003-2017 Jasper Spaans. hosted at Digital OceanAdvertise on this site