• B
    GFS2: filesystem hang caused by incorrect lock order · 44ad37d6
    Bob Peterson 提交于
    This patch fixes a deadlock in GFS2 where two processes are trying
    to reclaim an unlinked dinode:
    One holds the inode glock and calls gfs2_lookup_by_inum trying to look
    up the inode, which it can't, due to I_FREEING.  The other has set
    I_FREEING from vfs and is at the beginning of gfs2_delete_inode
    waiting for the glock, which is held by the first.  The solution is to
    add a new non_block parameter to the gfs2_iget function that causes it
    to return -ENOENT if the inode is being freed.
    Signed-off-by: NBob Peterson <rpeterso@redhat.com>
    Signed-off-by: NSteven Whitehouse <swhiteho@redhat.com>
    44ad37d6
dir.c 47.1 KB