]> git.karo-electronics.de Git - karo-tx-linux.git/commit
GFS2: Add test for resource group congestion status
authorSteven Whitehouse <swhiteho@redhat.com>
Wed, 31 Oct 2012 09:58:42 +0000 (09:58 +0000)
committerSteven Whitehouse <swhiteho@redhat.com>
Wed, 31 Oct 2012 09:58:42 +0000 (09:58 +0000)
commite9c217b737708dc481934fd73dc00d3ddabcfab2
tree0db49bd3450ea67e0911d397d40e6126e3aa8983
parenta86888ea6e228843ec3472906aeed1bb4492439a
GFS2: Add test for resource group congestion status

This patch uses information gathered by the recent glock statistics
patch in order to derrive a boolean verdict on the congestion
status of a resource group. This is then used when making decisions
on which resource group to choose during block allocation.

The aim is to avoid resource groups which are heavily contended
by other nodes, while still ensuring locality of access wherever
possible.

Once a reservation has been made in a particular resource group
we continue to use that resource group until a new reservation is
required. This should help to ensure that we do not change resource
groups too often.

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