diff options
author | Steven Whitehouse <swhiteho@redhat.com> | 2011-02-02 14:48:10 +0000 |
---|---|---|
committer | Steven Whitehouse <swhiteho@redhat.com> | 2011-02-02 14:48:10 +0000 |
commit | b9c93bb7deadc7cdd00415edc6b38d67a26c1c7a (patch) | |
tree | b490fba351eefdb9ef4feeb9925fae75045fac51 /fs/gfs2/quota.c | |
parent | edae38a6431276c50d4b51543c36de258722358e (diff) |
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: Scooter Morris <scooter@cgl.ucsf.edu>
Signed-off-by: Steven Whitehouse <swhiteho@redhat.com>
Diffstat (limited to 'fs/gfs2/quota.c')
0 files changed, 0 insertions, 0 deletions