[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <CAHmME9pGhQoY8MjR8uvEZpF66Y_DvReAjKBx8L4SRiqbL_9itw@mail.gmail.com>
Date: Thu, 6 Feb 2020 19:12:32 +0100
From: "Jason A. Donenfeld" <Jason@...c4.com>
To: Eric Dumazet <eric.dumazet@...il.com>
Cc: cai@....pw, Netdev <netdev@...r.kernel.org>,
LKML <linux-kernel@...r.kernel.org>,
Marco Elver <elver@...gle.com>
Subject: Re: [PATCH v3] skbuff: fix a data race in skb_queue_len()
On Thu, Feb 6, 2020 at 6:10 PM Eric Dumazet <eric.dumazet@...il.com> wrote:
> Unfortunately we do not have ADD_ONCE() or something like that.
I guess normally this is called "atomic_add", unless you're thinking
instead about something like this, which generates the same
inefficient code as WRITE_ONCE:
#define ADD_ONCE(d, s) *(volatile typeof(d) *)&(d) += (s)
Powered by blists - more mailing lists