Re: [ovs-dev] [PATCH v2] seq: Make read of the current value atomic

2023-06-12 Thread Ilya Maximets
On 6/8/23 16:48, Simon Horman wrote: > On Mon, Jun 05, 2023 at 03:39:02PM +0200, Eelco Chaudron wrote: >> Make the read of the current seq->value atomic, i.e., not needing to >> acquire the global mutex when reading it. On 64-bit systems, this >> incurs no overhead, and it will avoid the mutex and

Re: [ovs-dev] [PATCH v2] seq: Make read of the current value atomic

2023-06-08 Thread Simon Horman
On Mon, Jun 05, 2023 at 03:39:02PM +0200, Eelco Chaudron wrote: > Make the read of the current seq->value atomic, i.e., not needing to > acquire the global mutex when reading it. On 64-bit systems, this > incurs no overhead, and it will avoid the mutex and potentially > a system call. > > For incr

[ovs-dev] [PATCH v2] seq: Make read of the current value atomic

2023-06-05 Thread Eelco Chaudron
Make the read of the current seq->value atomic, i.e., not needing to acquire the global mutex when reading it. On 64-bit systems, this incurs no overhead, and it will avoid the mutex and potentially a system call. For incrementing the value followed by waking up the threads, we are still taking th