lkml.org 
[lkml]   [2003]   [Dec]   [21]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    /
    Date
    From
    SubjectRe: [PATCH] loop.c patches, take two
     static inline void loop_handle_bio(struct loop_device *lo, struct bio *bio)
    {
    int ret;
    + struct bio *rbh;

    - /*
    - * For block backed loop, we know this is a READ
    - */
    if (lo->lo_flags & LO_FLAGS_DO_BMAP) {
    ret = do_bio_filebacked(lo, bio);
    bio_endio(bio, bio->bi_size, ret);
    - } else {
    - struct bio *rbh = bio->bi_private;
    + } else if (bio_rw(bio) == WRITE) {
    + /*


    AFAICS, this code path is never taken. You don't queue block device writes for the loop thread.


    + * Write complete, but more pages remain;
    + * encrypt and write some more pages
    + */
    + loop_recycle_buffer(lo, bio);



    --Mika



    -
    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: 2005-03-22 13:59    [W:0.019 / U:59.028 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site