Re: [PATCH 3/3] kref: Remove the memory barriers
From: Ming Lei
Date: Mon Dec 12 2011 - 05:32:59 EST
On Mon, Dec 12, 2011 at 6:12 PM, Peter Zijlstra <peterz@xxxxxxxxxxxxx> wrote:
> I don't know the driver model, and I don't plan to start learning it
> now. But if what you said is possible its broken and no memory barriers
> will fix it.
IMO, you don't need to learn it, and my example is very simple and common
kref usage in device drivers, :-)
Could we only focus on it and see what is problem? and why won't memory
barrier fix it?
Anyway, device drivers are the most consumers of kref...
thanks,
--
Ming Lei
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/