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)
commitf4a3ae9308e34bcd704325a08879b2c1cfb74686
tree2002df7eacb9f6d17fedc46057eae3159d9cd68c
parentbb0fd7ab0986105765d11baa82e619c618a235aa
GFS2: Use average srttb value in congestion calculations

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