• Steven Whitehouse's avatar
    GFS2: Be extra careful about deallocating inodes · acf7e244
    Steven Whitehouse authored
    There is a potential race in the inode deallocation code if two
    nodes try to deallocate the same inode at the same time. Most of
    the issue is solved by the iopen locking. There is still a small
    window which is not covered by the iopen lock. This patches fixes
    that and also makes the deallocation code more robust in the face of
    any errors in the rgrp bitmaps, or erroneous iopen callbacks from
    other nodes.
    
    This does introduce one extra disk read, but that is generally not
    an issue since its the same block that must be written to later
    in the deallocation process. The total disk accesses therefore stay
    the same,
    Signed-off-by: default avatarSteven Whitehouse <swhiteho@redhat.com>
    acf7e244
export.c 5.85 KB