• S
    GFS2: Fix race during filesystem mount · 3942ae53
    Steven Whitehouse 提交于
    There is a potential race during filesystem mounting which has recently
    been reported. It occurs when the userland gfs_controld is able to
    process requests fast enough that it tries to use the sysfs interface
    before the lock module is properly initialised. This is a pretty
    unusual case as normally the lock module initialisation is very quick
    compared with gfs_controld.
    
    This patch adds an interruptible completion which is used to ensure that
    userland will wait for the initialisation of the lock module to
    complete.
    
    There are other potential solutions to this problem, but this is the
    quickest at this stage and has been tested both with and without
    mount.gfs2 present in the system.
    Signed-off-by: NSteven Whitehouse <swhiteho@redhat.com>
    Reported-by: NDavid Booher <dbooher@adams.net>
    3942ae53
incore.h 16.4 KB