Re: [PATCH v2] netlink: Replace rhash_portid with bound

From: Linus Torvalds
Date: Tue Sep 22 2015 - 15:28:51 EST


On Tue, Sep 22, 2015 at 11:53 AM, Tejun Heo <tj@xxxxxxxxxx> wrote:
>
> I see. The write path here is cold so the competition is between rmb
> and acquire. Unless some significant archs completely screwed it up,
> acquire still seems like the better option. It's essentially free on
> x86 after all.

Both acquire and smp_rmb() are equally free on x86.

It appears that we don't do the X86_PPRO_FENCE bug handling for
acquire, but I guess we should.

Or possibly we should start deprecating the insane X86_PPRO_FENCE
entirely. It's very costly, for dubious advantages.

Linus
--
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/