Re: [PATCH v4 6/6] arch, x86: pmem api for ensuring durability of persistent memory updates

From: Christoph Hellwig
Date: Wed Jun 17 2015 - 07:31:28 EST

This mess with arch_ methods and an ops vecor is almost unreadable.

What's the problem with having something like:

if (arch_has_pmem) // or sync_pmem

This adds a branch at runtime, but that shoudn't really be any slower
than an indirect call on architectures that matter.

To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at
Please read the FAQ at