• S
    GFS2: Improve cluster mmap scalability · b9c93bb7
    Steven Whitehouse 提交于
    The mmap system call grabs a glock when an update to atime maybe
    required. It does this in order to ensure that the flags on the
    inode are uptodate, but since it will only mark atime for a future
    update, an exclusive lock is not required here (one will be taken
    later when the actual update is performed).
    
    Also, the lock can be skipped when the mount is marked noatime in
    addition to the original check which only looked at the noatime
    flag for the inode itself.
    
    This should increase the scalability of the mmap call when multiple
    nodes are all mmaping the same file.
    Reported-by: NScooter Morris <scooter@cgl.ucsf.edu>
    Signed-off-by: NSteven Whitehouse <swhiteho@redhat.com>
    b9c93bb7
file.c 25.5 KB