Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Skip to content
Commit b9c93bb7 authored by Steven Whitehouse's avatar Steven Whitehouse
Browse files

GFS2: Improve cluster mmap scalability



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: default avatarScooter Morris <scooter@cgl.ucsf.edu>
Signed-off-by: default avatarSteven Whitehouse <swhiteho@redhat.com>
parent edae38a6
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment