GFS2: Use average srttb value in congestion calculations
authorBob Peterson <rpeterso@redhat.com>
Wed, 19 Nov 2014 18:27:11 +0000 (12:27 -0600)
committerBob Peterson <rpeterso@redhat.com>
Fri, 24 Apr 2015 12:57:08 +0000 (07:57 -0500)
This patch changes function gfs2_rgrp_congested so that it uses an
average srttb (smoothed round trip time for blocking rgrp glocks)
rather than the CPU-specific value. If we use the CPU-specific value
it can incorrectly report no contention when there really is contention
due to the glock processing occurring on a different CPU.

Signed-off-by: Bob Peterson <rpeterso@redhat.com>
Acked-by: Steven Whitehouse <swhiteho@redhat.com>
fs/gfs2/rgrp.c

diff --cc fs/gfs2/rgrp.c
Simple merge