From: mathieu.desnoyers@efficios.com (Mathieu Desnoyers)
Subject: [ltt-dev] [PATCH 5/6] rculfhash: Fix min_alloc_size bug
Date: Tue, 1 Nov 2011 13:03:47 -0400 [thread overview]
Message-ID: <20111101170347.GD18068@Krystal> (raw)
In-Reply-To: <f685766d66536087135f21095f830898ebb47318.1320051657.git.laijs@cn.fujitsu.com>
* Lai Jiangshan (laijs at cn.fujitsu.com) wrote:
> When I change MIN_ALLOC_ORDER macro to parameter,
> I forgot set min_alloc_order before used it which causes bug.
Merged, thanks !
Mathieu
>
> Signed-off-by: Lai Jiangshan <laijs at cn.fujitsu.com>
> ---
> rculfhash.c | 4 ++--
> 1 files changed, 2 insertions(+), 2 deletions(-)
>
> diff --git a/rculfhash.c b/rculfhash.c
> index 5ff832d..41ae278 100644
> --- a/rculfhash.c
> +++ b/rculfhash.c
> @@ -1349,10 +1349,10 @@ struct cds_lfht *_cds_lfht_new(cds_lfht_hash_fct hash_fct,
> pthread_mutex_init(&ht->resize_mutex, NULL);
> order = get_count_order_ulong(init_size);
> ht->t.resize_target = 1UL << order;
> - cds_lfht_create_dummy(ht, 1UL << order);
> - ht->t.size = 1UL << order;
> ht->min_alloc_size = min_alloc_size;
> ht->min_alloc_order = get_count_order_ulong(min_alloc_size);
> + cds_lfht_create_dummy(ht, 1UL << order);
> + ht->t.size = 1UL << order;
> return ht;
> }
>
> --
> 1.7.4.4
>
--
Mathieu Desnoyers
Operating System Efficiency R&D Consultant
EfficiOS Inc.
http://www.efficios.com
parent reply other threads:[~2011-11-01 17:03 UTC|newest]
Thread overview: expand[flat|nested] mbox.gz Atom feed
[parent not found: <f685766d66536087135f21095f830898ebb47318.1320051657.git.laijs@cn.fujitsu.com>]
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=20111101170347.GD18068@Krystal \
--to=mathieu.desnoyers@efficios.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