Skip to content
  • Steven Whitehouse's avatar
    GFS2: Fix AIL flush issue during fsync · b5b24d7a
    Steven Whitehouse authored
    
    
    Unfortunately, it is not enough to just ignore locked buffers during
    the AIL flush from fsync. We need to be able to ignore all buffers
    which are locked, dirty or pinned at this stage as they might have
    been added subsequent to the log flush earlier in the fsync function.
    
    In addition, this means that we no longer need to rely on i_mutex to
    keep out writes during fsync, so we can, as a side-effect, remove
    that protection too.
    
    Signed-off-by: default avatarSteven Whitehouse <swhiteho@redhat.com>
    Tested-By: default avatarAbhijith Das <adas@redhat.com>
    b5b24d7a