[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <CAF8QhUhSWauyg2a1Y_MjP0gk-W9oydbpuBvtZyGZEbfmm8+mQA@mail.gmail.com>
Date: Thu, 31 Jan 2019 13:16:31 +0800
From: fei phung <feiphung27@...il.com>
To: mst@...hat.com, feiphung@...mail.com, netdev@...r.kernel.org
Subject: Re: Question on ptr_ring linux header
Hi,
/*
* Filename: circ_ring.c
* Version: 1.0
* Description: A circular buffer using API from
* https://github.com/torvalds/linux/blob/master/include/linux/ptr_ring.h
*/
ptr_ring's void** queue is just giving data race problem, running
consume() together with [assignment of pointers+produce()] will
definitely give rise to data race
mutex or lock cannot help in this case. Please correct me if wrong
Regards,
Phung
Powered by blists - more mailing lists