Add a rs_reserved field to struct gfs2_blkreserv to keep track of the
number of blocks reserved by this particular reservation. When making a
reservation with gfs2_inplace_reserve, this field is set to somewhere
between ap->min_target and ap->target depending on the number of free
blocks in the
This is an update of the resource group glock sharing patch queue by Bob
and myself. Some of the cleanups and fixes posted previously [*] have
been integrated upstream in the meantime.
Patch "gfs2: Add local resource group locking" is now built on top of
the existing rgrp locking scheme; I'll
From: Bob Peterson
This patch takes advantage of the new glock holder sharing feature for
resource groups. We have already introduced local resource group
locking in a previous patch, so competing accesses of local processes
are already under control.
Signed-off-by: Bob Peterson
---
Unconditionally call gfs2_adjust_reservation in gfs2_alloc_blocks. Move
the code for updating rd_free and rd_free_clone from gfs2_alloc_blocks
into gfs2_adjust_reservation.
Signed-off-by: Andreas Gruenbacher
---
fs/gfs2/rgrp.c | 26 --
1 file changed, 16 insertions(+),
From: Bob Peterson
Introduce a new LM_FLAG_NODE_SCOPE glock holder flag: when taking a
glock in LM_ST_EXCLUSIVE (EX) mode and with the LM_FLAG_NODE_SCOPE flag
set, the exclusive lock is shared among all local processes who are
holding the glock in EX mode and have the LM_FLAG_NODE_SCOPE flag set