• Steven Whitehouse's avatar
    GFS2: Fix bug trap and journaled data fsync · f1818529
    Steven Whitehouse authored
    Journaled data requires that a complete flush of all dirty data for
    the file is done, in order that the ail flush which comes after
    will succeed.
    
    Also the recently enhanced bug trap can trigger falsely in case
    an ail flush from fsync races with a page read. This updates the
    bug trap such that it will ignore buffers which are locked and
    only trigger on dirty and/or pinned buffers when the ail flush
    is run from fsync. The original bug trap is retained when ail
    flush is run from ->go_sync()
    Signed-off-by: default avatarSteven Whitehouse <swhiteho@redhat.com>
    f1818529
glops.c 15.5 KB