[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Date: Mon, 12 Dec 2011 09:54:38 +0100
From: Peter Zijlstra <peterz@...radead.org>
To: Ming Lei <tom.leiming@...il.com>
Cc: gregkh@...e.de, akpm@...ux-foundation.org,
linux-kernel@...r.kernel.org, ostrikov@...dia.com,
adobriyan@...il.com, eric.dumazet@...il.com, mingo@...e.hu,
Oliver Neukum <oneukum@...e.de>
Subject: Re: [PATCH 3/3] kref: Remove the memory barriers
On Mon, 2011-12-12 at 11:48 +0800, Ming Lei wrote:
> For kref, maybe it is still multiple operations done on one cpu vs them
> being visible on another, but seems a bit implicit, see the common kref
> usage below:
>
> CPU0 CPU1
> A:kref_init(&obj->ref)
how does CPU0 get a ref to obj?
> B:kref_get(&obj->ref)
> C:access obj E:access obj
> F:kref_put(&ojb->ref)
> D:kref_put(obj->ref)
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists