]> git.karo-electronics.de Git - karo-tx-linux.git/commit
GFS2: Reduce contention on gfs2_log_lock
authorBob Peterson <rpeterso@redhat.com>
Mon, 30 Jan 2017 16:51:21 +0000 (11:51 -0500)
committerBob Peterson <rpeterso@redhat.com>
Mon, 30 Jan 2017 17:10:25 +0000 (12:10 -0500)
commitaacee72061a352d52ef9d3854f8db3b86b93ea16
tree2c8cdb53631c6576663c7a1d2a7c285c7d425cb8
parent192738b711d3e41a7326347db5d6923d2136b6d0
GFS2: Reduce contention on gfs2_log_lock

This patch modifies functions gfs2_trans_add_meta and _data so that
they check whether the buffer_head is already in a transaction,
and if so, avoid taking the gfs2_log_lock.

Signed-off-by: Bob Peterson <rpeterso@redhat.com>
fs/gfs2/trans.c