• Steven Whitehouse's avatar
    [GFS2] Fix for lock recursion problem for internal files · 61a30dcb
    Steven Whitehouse authored
    Two internal files which are read through the gfs2_internal_read()
    routine were already locked when the routine was called and this
    do not need locking at the redapages level.
    
    This patch introduces a struct file which is used as a sentinal
    so that readpage will only perform locking in the case that the
    struct file passed to it is _not_ equal to this sentinal.
    
    Since the comments in the generic kernel code indicate that the
    struct file will never be used for anything other than passing
    straight through to readpage(), this should be ok.
    Signed-off-by: default avatarSteven Whitehouse <swhiteho@redhat.com>
    61a30dcb
ops_file.c 22.4 KB