lkml.org 
[lkml]   [2003]   [May]   [17]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    /
    Date
    From
    SubjectRe: [PATCH] laptop mode, #2
    On May 16, 2003  13:33 +0200, Jens Axboe wrote:
    > + if (block_dump)
    > + printk("%s: %s block %lu/%u on %s\n", current->comm, rw == WRITE ? "WRITE" : "READ", bh->b_rsector, count, kdevname(bh->b_rdev));

    This should be changed to KERN_DEBUG or similar, since if you are logging
    kernel messages to disk you get stuck in an infinite loop with block_dump:

    kjournald: WRITE block 67416/8 on 03:05
    kjournald: WRITE block 67424/8 on 03:05
    kjournald: WRITE block 67432/8 on 03:05
    kjournald: WRITE block 548144/8 on 03:05
    kjournald: WRITE block 67440/8 on 03:05
    kjournald: WRITE block 67448/8 on 03:05
    kjournald: WRITE block 67456/8 on 03:05
    :
    :

    Cheers, Andreas
    --
    Andreas Dilger
    http://sourceforge.net/projects/ext2resize/
    http://www-mddsp.enel.ucalgary.ca/People/adilger/

    -
    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:35    [W:0.023 / U:59.996 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site