]> git.karo-electronics.de Git - karo-tx-linux.git/commit
GFS2: Take account of blockages when using reserved blocks
authorSteven Whitehouse <swhiteho@redhat.com>
Mon, 30 Jul 2012 10:06:08 +0000 (11:06 +0100)
committerSteven Whitehouse <swhiteho@redhat.com>
Fri, 3 Aug 2012 09:22:49 +0000 (10:22 +0100)
commit3633e7275516e0fe0a80f1361a6565b1e925cf9a
tree4b6a785e4a8b1a1944180007796ef50df0b3f939
parent4a99437536735d186543cb2ba3bec5b5e616dfa9
GFS2: Take account of blockages when using reserved blocks

The claim_reserved_blks() function was not taking account of
the possibility of "blockages" while performing allocation.
This can be caused by another node allocating something in
the same extent which has been reserved locally.

This patch tests for this condition and then skips the remainder
of the reservation in this case. This is a relatively rare event,
so that it should not affect the general performance improvement
which the block reservations provide.

The claim_reserved_blks() function also appears not to be able
to deal with reservations which cross bitmap boundaries, but
that can be dealt with in a future patch since we don't generate
boundary crossing reservations currently.

Signed-off-by: Steven Whitehouse <swhiteho@redhat.com>
Reported-by: David Teigland <teigland@redhat.com>
Cc: Bob Peterson <rpeterso@redhat.com>
fs/gfs2/rgrp.c