On Mon, 21 Apr 2014, Oliver Neukum wrote:
> > In addition, the following code in kfifo_get() does this:
> >
> > *(typeof(__tmp->type))__val = \
> > (__is_kfifo_ptr(__tmp) ? \
> > ((typeof(__tmp->type))__kfifo->data) : \
>
On Wed, 2014-04-16 at 11:26 -0400, Alan Stern wrote:
> On Wed, 16 Apr 2014, Oliver Neukum wrote:
>
> > Hi,
> >
> > I am looking at memory ordering and a question hit me.
> > I was looking at the kfifo code. kfifo_put() has a barrier:
> >
> > )[__kfifo->in & __tmp->kfifo.mask]
On Fri, 18 Apr 2014, Oliver Neukum wrote:
> On Thu, 2014-04-17 at 11:50 -0400, Alan Stern wrote:
> > On Thu, 17 Apr 2014, Oliver Neukum wrote:
> >
> > > On Wed, 2014-04-16 at 11:26 -0400, Alan Stern wrote:
> > >
> > > > In addition, the following code in kfifo_get() does this:
> > > >
> > > >
On Thu, 2014-04-17 at 11:50 -0400, Alan Stern wrote:
> On Thu, 17 Apr 2014, Oliver Neukum wrote:
>
> > On Wed, 2014-04-16 at 11:26 -0400, Alan Stern wrote:
> >
> > > In addition, the following code in kfifo_get() does this:
> > >
> > > *(typeof(__tmp->type))__val = \
> > >
On Thu, 2014-04-17 at 11:50 -0400, Alan Stern wrote:
> On Thu, 17 Apr 2014, Oliver Neukum wrote:
>
> > On Wed, 2014-04-16 at 11:26 -0400, Alan Stern wrote:
> >
> > > In addition, the following code in kfifo_get() does this:
> > >
> > > *(typeof(__tmp->type))__val = \
> > >
On Thu, 17 Apr 2014, Oliver Neukum wrote:
> On Wed, 2014-04-16 at 11:26 -0400, Alan Stern wrote:
>
> > In addition, the following code in kfifo_get() does this:
> >
> > *(typeof(__tmp->type))__val = \
> > (__is_kfifo_ptr(__tmp) ? \
> >
On Wed, 2014-04-16 at 11:26 -0400, Alan Stern wrote:
> In addition, the following code in kfifo_get() does this:
>
> *(typeof(__tmp->type))__val = \
> (__is_kfifo_ptr(__tmp) ? \
> ((typeof(__tmp->type))__kfifo->data
On Wed, 16 Apr 2014, Oliver Neukum wrote:
> Hi,
>
> I am looking at memory ordering and a question hit me.
> I was looking at the kfifo code. kfifo_put() has a barrier:
>
> )[__kfifo->in & __tmp->kfifo.mask] = \
> (typeof(*__tmp->type))__val; \
Hi,
I am looking at memory ordering and a question hit me.
I was looking at the kfifo code. kfifo_put() has a barrier:
)[__kfifo->in & __tmp->kfifo.mask] = \
(typeof(*__tmp->type))__val; \
smp_wmb(); \
9 matches
Mail list logo