Skip to content

Support DAX for device-mapper linear devices

Mike Snitzer dm-devel linux-nvdimm lkml nvdimm 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v3 Latest4 patches 7 repliesIn review

Changes in v3 from the cover letter

- fixed "warning: context imbalance in 'dm_blk_direct_access' - different lock contexts for basic block" due to missing dm_put_live_table in dm_blk_direct_access's dm_get_live_table error path
- refactored dm-table.c code to centralize checking if all devices in a DM table support DAX (removed need for target to set ->dax_supported)
- included Yigal Korman's patch to add 'dax' sysfs attribute

Patches in v3 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/4block: add QUEUE_FLAG_DAX for devices to advertise their DAX supportdrivers/block/brd.c drivers/nvdimm/pmem.c drivers/s390/block/dcssblk.c +2 more+10 -30 replies
2/4block: expose QUEUE_FLAG_DAX in sysfsblock/blk-sysfs.c+11 -00 replies
3/4dm: add infrastructure for DAX supportdrivers/md/dm-table.c drivers/md/dm.c drivers/md/dm.h +2 more+92 -55 replies
4/4dm linear: add DAX supportdrivers/md/dm-linear.c+20 -10 replies

Reviews trailers per patch

2 of 4 patches have a Reviewed-by or Acked-by.

PatchDan Williams
1/4A-b
2/4A-b
3/4
4/4

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v3 thread

Cover letter [PATCH v3 0/4] Support DAX for device-mapper linear devices

Jens, please pick up the first 2 block patches and I'll get the other 2 DM patches staged for 4.8.

v3:
- fixed "warning: context imbalance in 'dm_blk_direct_access' - different lock contexts for basic block" due to missing dm_put_live_table in dm_blk_direct_access's dm_get_live_table error path
- refactored dm-table.c code to centralize checking if all devices in a DM table support DAX (removed need for target to set ->dax_supported)
- included Yigal Korman's patch to add 'dax' sysfs attribute

Toshi Kani (3):
block: add QUEUE_FLAG_DAX for devices to advertise their DAX support
dm: add infrastructure for DAX support
dm linear: add DAX support

Yigal Korman (1):
block: expose QUEUE_FLAG_DAX in sysfs

 block/blk-sysfs.c             | 11 +++++++++++
 drivers/block/brd.c           |  4 +++-
 drivers/md/dm-linear.c        | 21 ++++++++++++++++++++-
 drivers/md/dm-table.c         | 44 ++++++++++++++++++++++++++++++++++++++++++-
 drivers/md/dm.c               | 38 +++++++++++++++++++++++++++++++++++--
 drivers/md/dm.h               |  1 +
 drivers/nvdimm/pmem.c         |  1 +
 drivers/s390/block/dcssblk.c  |  1 +
 fs/block_dev.c                |  5 +++--
 include/linux/blkdev.h        |  2 ++
 include/linux/device-mapper.h | 10 ++++++++++
 include/uapi/linux/dm-ioctl.h |  4 ++--
 12 files changed, 133 insertions(+), 9 deletions(-)
Signature · 1 line
2.7.4 (Apple Git-66)