[PATCH 12/46] kref: fix CPU ordering with respect to krefs

2007-04-27 Thread Greg Kroah-Hartman
From: Oliver Neukum <[EMAIL PROTECTED]> some atomic operations are only atomic, not ordered. Thus a CPU is allowed to reorder memory references to an object to before the reference is obtained. This fixes it. Signed-off-by: Oliver Neukum <[EMAIL PROTECTED]> Signed-off-by: Greg Kroah-Hartman <[EMA

Re: CPU ordering with respect to krefs

2007-04-16 Thread Oliver Neukum
Am Donnerstag, 12. April 2007 08:27 schrieb Greg KH: > On Mon, Apr 02, 2007 at 04:33:54PM +0200, Eric Dumazet wrote: > > On Mon, 2 Apr 2007 14:47:59 +0200 > > Oliver Neukum <[EMAIL PROTECTED]> wrote: > > > > > Hi, > > > > > > some atomic operations are only atomic, not ordered. Thus a CPU is allo

Re: CPU ordering with respect to krefs

2007-04-12 Thread Greg KH
On Mon, Apr 02, 2007 at 04:33:54PM +0200, Eric Dumazet wrote: > On Mon, 2 Apr 2007 14:47:59 +0200 > Oliver Neukum <[EMAIL PROTECTED]> wrote: > > > Hi, > > > > some atomic operations are only atomic, not ordered. Thus a CPU is allowed > > to reorder memory references to an object to before the ref

Re: CPU ordering with respect to krefs

2007-04-02 Thread Eric Dumazet
On Mon, 2 Apr 2007 14:47:59 +0200 Oliver Neukum <[EMAIL PROTECTED]> wrote: > Hi, > > some atomic operations are only atomic, not ordered. Thus a CPU is allowed > to reorder memory references to an object to before the reference is > obtained. This fixes it. > > Regards > Oliv

CPU ordering with respect to krefs

2007-04-02 Thread Oliver Neukum
Hi, some atomic operations are only atomic, not ordered. Thus a CPU is allowed to reorder memory references to an object to before the reference is obtained. This fixes it. Regards Oliver Signed-off-by: Oliver Neukum <[EMAIL PROTECTED]> -- --- a/lib/kref.c2007