cluster-devel.redhat.com archive mirror
 help / color / mirror / Atom feed
From: Steven Whitehouse <swhiteho@redhat.com>
To: cluster-devel.redhat.com
Subject: [Cluster-devel] [GFS2 PATCH 5/5] GFS2: Do not reset flags on active reservations
Date: Tue, 17 Sep 2013 10:48:08 +0100	[thread overview]
Message-ID: <1379411288.2722.12.camel@menhir> (raw)
In-Reply-To: <5c00cd2f5b94171fe77ee8677b879f9d28642283.1378924107.git.rpeterso@redhat.com>

Hi,

So I've taken patches 1,2 and 5 from this series. I know that you are
looking into being able to reduce the rbm size by using just the bii and
removing the bitmap pointer, so I'll leave 3 & 4 until thats ready too,
if that makes sense?

Steve.

On Wed, 2013-09-11 at 13:44 -0500, Bob Peterson wrote:
> When we used try locks for rgrps on block allocations, it was important
> to clear the flags field so that we used a blocking hold on the glock.
> Now that we're not doing try locks, clearing flags is unnecessary, and
> a waste of time. In fact, it's probably doing the wrong thing because
> it clears the GL_SKIP bit that was set for the lvb tracking purposes.
> ---
>  fs/gfs2/rgrp.c | 1 -
>  1 file changed, 1 deletion(-)
> 
> diff --git a/fs/gfs2/rgrp.c b/fs/gfs2/rgrp.c
> index f023ca6..e4f3362 100644
> --- a/fs/gfs2/rgrp.c
> +++ b/fs/gfs2/rgrp.c
> @@ -1849,7 +1849,6 @@ int gfs2_inplace_reserve(struct gfs2_inode *ip, u32 requested, u32 aflags)
>  		return -EINVAL;
>  	if (gfs2_rs_active(rs)) {
>  		begin = rs->rs_rbm.rgd;
> -		flags = 0; /* Yoda: Do or do not. There is no try */
>  	} else if (ip->i_rgd && rgrp_contains_block(ip->i_rgd, ip->i_goal)) {
>  		rs->rs_rbm.rgd = begin = ip->i_rgd;
>  	} else {




      reply	other threads:[~2013-09-17  9:48 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-09-11 18:44 [Cluster-devel] [GFS2 PATCH 1/5] GFS2: optimize rbm_from_block wrt bi_start Bob Peterson
2013-09-11 18:44 ` [Cluster-devel] [GFS2 PATCH 2/5] GFS2: introduce bi_blocks for optimization Bob Peterson
2013-09-11 18:44 ` [Cluster-devel] [GFS2 PATCH 3/5] GFS2: Introduce rbm field bii Bob Peterson
2013-09-11 18:44 ` [Cluster-devel] [GFS2 PATCH 4/5] GFS2: new function gfs2_rbm_incr Bob Peterson
2013-09-11 18:44 ` [Cluster-devel] [GFS2 PATCH 5/5] GFS2: Do not reset flags on active reservations Bob Peterson
2013-09-17  9:48   ` Steven Whitehouse [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1379411288.2722.12.camel@menhir \
    --to=swhiteho@redhat.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).