Re: [PATCH v2 0/2] add support for new persistent memory instructions

From: H. Peter Anvin
Date: Mon Jan 26 2015 - 15:05:20 EST


On 01/26/2015 11:51 AM, Ross Zwisler wrote:
>
> This is fine, but now you've got two fences in a row. Another slightly more
> messy choice would be to include the fence in the pcommit assembly, so
> you either get pcommit + sfence or a pair of NOPs.
>

If that is the required usage pattern, it should be part of the clwb()
inline at least.

-hpa

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