Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1415159

[RFC PATCH 0/6] sysfs support for LightNVM

From Matias Bjørling <m@bjorling.me>
Newsgroups linux.kernel
Subject [RFC PATCH 0/6] sysfs support for LightNVM
Date 2016-06-06 16:50 +0200
Message-ID <rH40O-6ct-17@gated-at.bofh.it> (permalink)
Organization linux.* mail to news gateway

Show all headers | View raw


The common way to expose a storage device is to export it through the
gendisk structure, which takes care of handling the visibility lifetime
of the device to user-space and carries device driver and block layer
specific sysfs entries.

For LightNVM, no gendisk is exposed, which hides these entries.

This patchset enables LightNVM to expose a subset of the gendisk entries
by implementing a new non-gendisk device that only exposes the sysfs
entries that are relevant to the device driver and LightNVM. For example
/mq and the NVMe sysfs entries.

The new non-gendisk exposes itself in place of the original gendisk.
Thus, a gendisk device exposed through /sys/class/nvme/nvme0n1, will
still be exposed through the same directory, although only with the /mq,
lightnvm and nvme specific entries.

The LightNVM storage device can be found through sysfs by searching
for devices that has the "lightnvm" dev type.

Any feedback is appreciated.

Thank you,
Matias

Matias Bjørling (4):
  nvme: refactor namespaces to support non-gendisk devices
  null_blk: refactor to support non-gendisk devices
  blk-mq: register device instead of disk
  lightnvm: let drivers control the lifetime of nvm_dev

Simon Lund (2):
  lightnvm: expose device geometry through sysfs
  lightnvm: expose gennvm target type through sysfs

 block/blk-mq-sysfs.c         |  13 ++-
 block/blk-sysfs.c            |   4 +-
 drivers/block/null_blk.c     | 129 +++++++++++++++++-----------
 drivers/lightnvm/Makefile    |   2 +-
 drivers/lightnvm/core.c      |  52 +++++------
 drivers/lightnvm/gennvm.c    | 109 +++++++++++++++++++----
 drivers/lightnvm/lightnvm.h  |  35 ++++++++
 drivers/lightnvm/sysfs.c     | 200 +++++++++++++++++++++++++++++++++++++++++++
 drivers/md/dm.c              |   2 +-
 drivers/nvme/host/core.c     | 165 ++++++++++++++++++++---------------
 drivers/nvme/host/lightnvm.c |  29 ++++++-
 drivers/nvme/host/nvme.h     |  26 ++++--
 include/linux/blk-mq.h       |   4 +-
 include/linux/lightnvm.h     |  20 +++--
 14 files changed, 593 insertions(+), 197 deletions(-)
 create mode 100644 drivers/lightnvm/lightnvm.h
 create mode 100644 drivers/lightnvm/sysfs.c

-- 
2.1.4

Back to linux.kernel | Previous | NextNext in thread | Find similar | Unroll thread


Thread

[RFC PATCH 0/6] sysfs support for LightNVM Matias Bjørling <m@bjorling.me> - 2016-06-06 16:50 +0200
  [RFC PATCH 6/6] lightnvm: expose gennvm target type through sysfs Matias Bjørling <m@bjorling.me> - 2016-06-06 16:50 +0200
  [RFC PATCH 4/6] lightnvm: let drivers control the lifetime of nvm_dev Matias Bjørling <m@bjorling.me> - 2016-06-06 16:50 +0200
  [RFC PATCH 2/6] null_blk: refactor to support non-gendisk devices Matias Bjørling <m@bjorling.me> - 2016-06-06 16:50 +0200
  [RFC PATCH 5/6] lightnvm: expose device geometry through sysfs Matias Bjørling <m@bjorling.me> - 2016-06-06 16:50 +0200
  [RFC PATCH 3/6] blk-mq: register device instead of disk Matias Bjørling <m@bjorling.me> - 2016-06-06 16:50 +0200
  [RFC PATCH 1/6] nvme: refactor namespaces to support non-gendisk devices Matias Bjørling <m@bjorling.me> - 2016-06-06 16:50 +0200

csiph-web