[ovs-dev] [PATCH] lib/rstp: Use ovs_refcount_unref_relaxed.

Jarno Rajahalme jrajahalme at nicira.com
Wed Sep 10 16:47:14 UTC 2014


Did the same treatment to rstp_port_unref() and elaborated the commit message.

Acked-by: Jarno Rajahalme <jrajahalme at nicira.com>

Pushed to master,

  Jarno

On Sep 10, 2014, at 1:28 AM, Daniele Venturino <daniele.venturino at m3s.it> wrote:

> See commit 24f8381214966e90819bf4a9ecabf076cbfc1b08.
> 
> Signed-off by: Daniele Venturino <daniele.venturino at m3s.it>
> ---
> lib/rstp.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/lib/rstp.c b/lib/rstp.c
> index b213b44..f2f1dce 100644
> --- a/lib/rstp.c
> +++ b/lib/rstp.c
> @@ -168,7 +168,7 @@ void
> rstp_unref(struct rstp *rstp)
>     OVS_EXCLUDED(rstp_mutex)
> {
> -    if (rstp && ovs_refcount_unref(&rstp->ref_cnt) == 1) {
> +    if (rstp && ovs_refcount_unref_relaxed(&rstp->ref_cnt) == 1) {
>         ovs_mutex_lock(&rstp_mutex);
> 
>         /* Each RSTP port points back to struct rstp without holding a
> -- 
> 1.8.1.2
> 




More information about the dev mailing list