Skip to content
  • Steven Whitehouse's avatar
    GFS2: Use GFP_NOFS when allocating glocks · fe0bbd29
    Steven Whitehouse authored
    
    
    Normally GFP_KERNEL is ok here, but there is now a rarely used code path
    relating to deallocation of unlinked inodes (in certain corner cases)
    which if hit at times of memory shortage can cause recursion while
    trying to free memory.
    
    One solution would be to try and move the gfs2_glock_get() call so
    that it is no longer called while another glock is held, but that
    doesn't look at all easy, so GFP_NOFS is the best solution for the
    time being.
    
    Signed-off-by: default avatarSteven Whitehouse <swhiteho@redhat.com>
    fe0bbd29