[dm-devel] Persistent memory interface

Matthew Wilcox willy at linux.intel.com
Fri Jun 19 16:48:25 UTC 2015


On Fri, Jun 19, 2015 at 12:33:09PM -0400, Mikulas Patocka wrote:
> If I want to use persistent memory in another driver, for a different 
> purpose, how can I make sure that that drivers/block/pmem.c doesn't attach 
> to this piece of memory and export it? It seems not possible. 
> drivers/block/pmem.c attaches to everything without regard that there may 
> be other users of persistent memory.

You need to look at the patches that Dan has been posting to add support
for Labels (and NFIT and ...).  Those weren't available earlier because
the label spec wasn't public.

> BTW. some journaling filesystems assume that 512-byte sector is written 
> atomically. drivers/block/pmem.c breaks this requirement. Persistent 
> memory only gurantees 8-byte atomic writes.

... and that's addressed by the BTT patches.




More information about the dm-devel mailing list