lkml.org 
[lkml]   [2012]   [Jan]   [20]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    /
    From
    Subject[PATCH 0/8] Fix filesystem freezing
    Date

    Hello,

    This is the second iteration of my patches to improve filesystem freezing.
    Filesystem freezing is currently racy and thus we can end up with dirty data
    on frozen filesystem (see changelog of the first patch for detailed race
    description and proposed fix). This patch series aims at fixing this.

    The biggest changes since v1:
    * have two counters to provide safe state transitions for SB_FREEZE_WRITE
    and SB_FREEZE_TRANS states
    * use percpu counters instead of own percpu structure
    * added documentation fixes from the old fs freezing series
    * converted XFS to use SB_FREEZE_TRANS counter instead of its private
    m_active_trans counter

    Now I'm sending this mostly as a heads up so that people see current state
    because these patches are still racy. The problem is that when superblock is in
    SB_FREEZE_WRITE state inodes can still be dirtied (e.g. through touch_atime,
    directory operations or similar). These inodes then are not flushed and when
    superblock passes to SB_FREEZE_TRANS state, flusher thread deadlocks on trying
    to flush them.

    To fix this, we will have to block also operations dirtying inodes already
    in SB_FREEZE_WRITE state. I'm now looking into how to do this in the easiest
    way.

    Honza


    \
     
     \ /
      Last update: 2012-01-20 21:39    [W:4.829 / U:0.056 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site