Skip to content
  • Steven Whitehouse's avatar
    [GFS2] Fix deadlock in memory allocation · f3bba03f
    Steven Whitehouse authored
    
    
    We must not call GFP_KERNEL memory allocations while we
    are holding the log lock (read or write) since that may
    trigger a log flush resulting in a deadlock.
    
    Eventually we need to fix the locking in log.c, for now
    this solves the problem at the expense of freeing up memory
    as fast as we would like to. This needs to be revisited
    later on.
    
    Cc: Kevin Anderson <kanderso@redhat.com>
    Signed-off-by: default avatarSteven Whitehouse <swhiteho@redhat.com>
    f3bba03f