lkml.org 
[lkml]   [2007]   [Feb]   [18]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    /
    SubjectRe: dirty balancing deadlock
    From
    Date
    > --- a/fs/fs-writeback.c~a
    > +++ a/fs/fs-writeback.c
    > @@ -356,7 +356,7 @@ int generic_sync_sb_inodes(struct super_
    > continue; /* Skip a congested blockdev */
    > }
    >
    > - if (wbc->bdi && bdi != wbc->bdi) {
    > + if (wbc->bdi && bdi != wbc->bdi && bdi_write_congested(bdi)) {
    > if (!sb_is_blkdev_sb(sb))
    > break; /* fs has the wrong queue */
    > list_move(&inode->i_list, &sb->s_dirty);

    Checking bdi_write_congested(bdi) is not reliable, since the queue can
    become congested _after_ the check is done.

    Miklos
    -
    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-02-19 01:35    [W:0.043 / U:0.748 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site