All of lore.kernel.org
 help / color / mirror / Atom feed
* gendisk and lightnvm
@ 2016-05-23  7:24 Matias Bjørling
  2016-05-26 17:40 ` Dan Williams
  0 siblings, 1 reply; 7+ messages in thread
From: Matias Bjørling @ 2016-05-23  7:24 UTC (permalink / raw)
  To: Jens Axboe, Christoph Hellwig, Keith Busch, Simon Lund; +Cc: linux-block

Hi Jens, Christoph, and Keith,

I have been pondering for a couple of weeks on how to integrate lightnvm 
into the sysfs stack. Lightnvm does not currently expose a "physical" 
device. During device registration, the block device name is simply 
stored, which the user may then use as an id later, and expose through a 
target implementation.

Until then, the device is left "dangling" in the kernel, without any 
good way to reference it other than asking the lightnvm manager. This 
also includes device driver specific configuration, such as power and mq 
sysfs entries.

It would be great to have a common way to expose the lightnvm subsystem 
through the block storage stack.

With block devices, the device driver centric information includes:

/sys/block/*/
   inflight
   removable
   serial
   /mq
   /power

Simon has currently built an RFC patch that wires lightnvm devices up in 
/sys/devices/virtual/misc/lightnvm/*, without any access to the above 
entries.

What would be the best way to approach this?

1. Simply set genhd device capacity to 0, and let entries and block 
device be exposed through the common stack.

2. Add a GENHD_FL_BLKLESS_DEV flag, and use it in genhd.c and block 
layer to filter out block device specific entries.

3. Write a shim layer that exposes a semi genhd, with only the device 
driver sysfs entries exposed.

4. Any other?

Thank you,
Matias

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

end of thread, other threads:[~2016-05-27 17:25 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-05-23  7:24 gendisk and lightnvm Matias Bjørling
2016-05-26 17:40 ` Dan Williams
2016-05-26 18:10   ` Matias Bjørling
2016-05-26 19:05     ` Dan Williams
2016-05-26 21:50       ` Matias Bjørling
2016-05-26 22:06         ` Dan Williams
2016-05-27 17:25           ` Matias Bjørling

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.