[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH] tests: fix counting typo error
From: |
Stefan Hajnoczi |
Subject: |
Re: [PATCH] tests: fix counting typo error |
Date: |
Fri, 11 Oct 2019 11:18:10 +0100 |
User-agent: |
Mutt/1.12.1 (2019-06-15) |
On Thu, Oct 10, 2019 at 08:17:02PM +0800, Tianjia Zhang wrote:
> Instead of global variables, local variables should be incrementing,
> This is a typo fix.
>
> Signed-off-by: Tianjia Zhang <address@hidden>
> ---
> tests/test-rcu-list.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
CCing Paolo Bonzini, author of the RCU code.
>
> diff --git a/tests/test-rcu-list.c b/tests/test-rcu-list.c
> index 6f076473e0..c0fc47ded4 100644
> --- a/tests/test-rcu-list.c
> +++ b/tests/test-rcu-list.c
> @@ -219,7 +219,7 @@ static void *rcu_q_updater(void *arg)
> j++;
> if (target_el == j) {
> struct list_element *new_el = g_new(struct list_element, 1);
> - n_nodes += n_nodes_local;
> + n_nodes_local++;
> TEST_LIST_INSERT_AFTER_RCU(el, new_el, entry);
> break;
> }
> --
> 2.17.1
>
>
signature.asc
Description: PGP signature