[dpdk-dev] [PATCH] ring: assert on zero objects dequeue/enqueue

2016-03-17 Thread Lazaros Koromilas
Sure, I'm sending it again with your suggestions. Lazaros. On Wed, Mar 16, 2016 at 1:21 PM, Bruce Richardson wrote: > On Tue, Mar 15, 2016 at 06:58:45PM +0200, Lazaros Koromilas wrote: >> Issuing a zero objects dequeue with a single consumer has no effect. >> Doing so with multiple consumers,

[dpdk-dev] [PATCH] ring: assert on zero objects dequeue/enqueue

2016-03-16 Thread Bruce Richardson
On Tue, Mar 15, 2016 at 06:58:45PM +0200, Lazaros Koromilas wrote: > Issuing a zero objects dequeue with a single consumer has no effect. > Doing so with multiple consumers, can get more than one thread to succeed > the compare-and-set operation and observe starvation or even deadlock in > the

[dpdk-dev] [PATCH] ring: assert on zero objects dequeue/enqueue

2016-03-15 Thread Lazaros Koromilas
Issuing a zero objects dequeue with a single consumer has no effect. Doing so with multiple consumers, can get more than one thread to succeed the compare-and-set operation and observe starvation or even deadlock in the while loop that checks for preceding dequeues. The problematic piece of code