All of lore.kernel.org
 help / color / mirror / Atom feed
* Persistent memory interface
@ 2015-06-19 16:33 Mikulas Patocka
  2015-06-19 16:48 ` Matthew Wilcox
                   ` (3 more replies)
  0 siblings, 4 replies; 15+ messages in thread
From: Mikulas Patocka @ 2015-06-19 16:33 UTC (permalink / raw)
  To: Ross Zwisler, Christoph Hellwig, linux-nvdimm
  Cc: Boaz Harrosh, Keith Busch, Andy Lutomirski, Jens Axboe, dm-devel,
	Borislav Petkov, H. Peter Anvin, Matthew Wilcox, Andrew Morton,
	Thomas Gleixner

Hi

I looked at the new the persistent memory block device driver 
(drivers/block/pmem.c and arch/x86/kernel/pmem.c) and it seems that the 
interface between them is incorrect.

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.

I think a correct solution would be to add a partition table at the 
beginning of persistent memory area and this partition table would 
describe which parts belong to which programs - so that different programs 
could use persistent memory and not step over each other's data. Is there 
some effort to standardize the partition table ongoing?


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.

Mikulas

^ permalink raw reply	[flat|nested] 15+ messages in thread

end of thread, other threads:[~2015-06-23 10:21 UTC | newest]

Thread overview: 15+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-06-19 16:33 Persistent memory interface Mikulas Patocka
2015-06-19 16:48 ` Matthew Wilcox
2015-06-19 16:52   ` Mikulas Patocka
2015-06-19 16:50 ` Verma, Vishal L
2015-06-22 16:50   ` Doug Dumitru
2015-06-22 19:01     ` Doug Dumitru
2015-06-22 21:35       ` Verma, Vishal L
2015-06-23 10:21         ` hch
2015-06-22 21:25     ` Verma, Vishal L
2015-06-22 22:17       ` Doug Dumitru
2015-06-19 16:53 ` Doug Dumitru
2015-06-19 17:35 ` Dan Williams
2015-06-19 19:14   ` Mikulas Patocka
2015-06-19 19:22     ` Dan Williams
2015-06-19 19:23       ` Dan Williams

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.