All of lore.kernel.org
 help / color / mirror / Atom feed
From: Alex Elder <alex.elder@linaro.org>
To: Sage Weil <sage@inktank.com>
Cc: ceph-devel@vger.kernel.org, stable@vger.kernel.org
Subject: Re: [PATCH] libceph: use pg_num_mask instead of pgp_num_mask for pg.seed calc
Date: Thu, 29 Aug 2013 09:24:05 -0500	[thread overview]
Message-ID: <521F5985.8040909@linaro.org> (raw)
In-Reply-To: <1377735546-8732-1-git-send-email-sage@inktank.com>

On 08/28/2013 07:19 PM, Sage Weil wrote:
> Fix a typo that used the wrong bitmask for the pg.seed calculation.  This
> is normally unnoticed because in most cases pg_num == pgp_num.  It is, however,
> a bug that is easily corrected.

Looks good to me.  The other two uses of pgp_num_mask are coupled with
pgp_num (not pg_num) in a ceph_stable_mod() call.

Reviewed-by: Alex Elder <elder@linaro.org>

> CC: stable@vger.kernel.org
> Signed-off-by: Sage Weil <sage@inktank.com>
> ---
>  net/ceph/osdmap.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/net/ceph/osdmap.c b/net/ceph/osdmap.c
> index 603ddd9..dbd9a47 100644
> --- a/net/ceph/osdmap.c
> +++ b/net/ceph/osdmap.c
> @@ -1129,7 +1129,7 @@ static int *calc_pg_raw(struct ceph_osdmap *osdmap, struct ceph_pg pgid,
>  
>  	/* pg_temp? */
>  	pgid.seed = ceph_stable_mod(pgid.seed, pool->pg_num,
> -				    pool->pgp_num_mask);
> +				    pool->pg_num_mask);
>  	pg = __lookup_pg_mapping(&osdmap->pg_temp, pgid);
>  	if (pg) {
>  		*num = pg->len;
> 

      reply	other threads:[~2013-08-29 14:24 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-08-29  0:19 [PATCH] libceph: use pg_num_mask instead of pgp_num_mask for pg.seed calc Sage Weil
2013-08-29 14:24 ` Alex Elder [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=521F5985.8040909@linaro.org \
    --to=alex.elder@linaro.org \
    --cc=ceph-devel@vger.kernel.org \
    --cc=sage@inktank.com \
    --cc=stable@vger.kernel.org \
    /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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.