lkml.org 
[lkml]   [2007]   [May]   [25]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    /
    From
    SubjectRe: [patch 5/7] ps3: Disk Storage Driver
    Date
    On Friday 25 May 2007, Geert Uytterhoeven wrote:
    >
    > > I don't really understand what the kthread is needed for. You probably
    > > thought about multiple options and ended up with this, but having
    > > a comment in front of it might be helpful.
    >
    > I used a kthread because the request function of a block device driver must be
    > non-blocking, and ps3stor_read_write_sectors() calls wait_for_completion().

    Ok, but why does it call wait_for_completion() then?
    I thought you could end_that_request_* from the interrupt handler instead.

    Arnd <><
    -
    To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
    the body of a message to majordomo@vger.kernel.org
    More majordomo info at http://vger.kernel.org/majordomo-info.html
    Please read the FAQ at http://www.tux.org/lkml/

    \
     
     \ /
      Last update: 2007-05-25 22:47    [W:0.022 / U:61.664 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site