• Christoph Hellwig's avatar
    [XFS] move root inode IRELE into xfs_unmountfs · 77508ec8
    Christoph Hellwig authored
    The root inode is allocated in xfs_mountfs so it should be release in
    xfs_unmountfs. For the unmount case that means we do it after the the
    xfs_sync(mp, SYNC_WAIT | SYNC_CLOSE) in the forced shutdown case and the
    dmapi unmount event. Note that both reference the rip variable which might
    be freed by that time in case inode flushing has kicked in, so strictly
    speaking this might count as a bug fix
    
    SGI-PV: 981498
    
    SGI-Modid: xfs-linux-melb:xfs-kern:31830a
    Signed-off-by: default avatarChristoph Hellwig <hch@infradead.org>
    Signed-off-by: default avatarLachlan McIlroy <lachlan@sgi.com>
    77508ec8
xfs_super.c 54.3 KB