]> git.ipfire.org Git - people/ms/linux.git/commit - fs/gfs2/log.c
GFS2: introduce AIL lock
authorDave Chinner <dchinner@redhat.com>
Fri, 11 Mar 2011 11:52:25 +0000 (11:52 +0000)
committerSteven Whitehouse <swhiteho@redhat.com>
Fri, 11 Mar 2011 11:52:25 +0000 (11:52 +0000)
commitd6a079e82efd5fcbb1c7295f22e123c2cc748018
treef95f3369dfb560bfc5d282577ca1edec0487e1d7
parente4a7b7b0c98efcdcc4c1f6eb10925dec1fbc4016
GFS2: introduce AIL lock

The log lock is currently used to protect the AIL lists and
the movements of buffers into and out of them. The lists
are self contained and no log specific items outside the
lists are accessed when starting or emptying the AIL lists.

Hence the operation of the AIL does not require the protection
of the log lock so split them out into a new AIL specific lock
to reduce the amount of traffic on the log lock. This will
also reduce the amount of serialisation that occurs when
the gfs2_logd pushes on the AIL to move it forward.

This reduces the impact of log pushing on sequential write
throughput.

Signed-off-by: Dave Chinner <dchinner@redhat.com>
Signed-off-by: Steven Whitehouse <swhiteho@redhat.com>
fs/gfs2/glops.c
fs/gfs2/incore.h
fs/gfs2/log.c
fs/gfs2/lops.c
fs/gfs2/ops_fstype.c