Skip to content

mutipath: handle nvme:tcp paths better

Benjamin Marzinski dm-devel 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest8 patches 9 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/8libmultipath: cleanup remove_featurelibmultipath/structs.c+29 -532 replies
2/8libmultipath: cleanup add_featurelibmultipath/structs.c+24 -251 reply
3/8multipath tests: tests for adding and removing featurestests/Makefile tests/features.c+320 -10 replies
4/8libmultipath: fix queue_mode feature handlinglibmultipath/configure.c libmultipath/dmparser.c libmultipath/propsel.c +2 more+73 -23 replies
5/8multipath tests: tests for reconcile_features_with_queue_modetests/Makefile tests/features.c+233 -10 replies
6/8libmultipath: prepare proto_id for use by non-scsi devivceslibmultipath/configure.c libmultipath/discovery.c libmultipath/print.c +3 more+22 -140 replies
7/8libmultipath: get nvme path transport protocollibmultipath/discovery.c libmultipath/structs.c libmultipath/structs.h +1 more+60 -211 reply
8/8libmultipath: enforce queue_mode bio for nmve:tcp pathslibmultipath/configure.c libmultipath/structs_vec.c multipath/multipath.conf.5+26 -21 reply

Reviews trailers per patch

5 of 8 patches have a Reviewed-by or Acked-by of their own; the series has one for all of them.

PatchMartin Wilck
SeriesR-b
1/8R-b
2/8R-b
3/8
4/8R-b
5/8
6/8
7/8R-b
8/8R-b

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

Read the v1 thread

Cover letter [dm-devel] [PATCH 0/8] mutipath: handle nvme:tcp paths better

nvme:tcp devices set BLK_MQ_F_BLOCKING (they are the only block devices which multipath supports that do so), meaning that block_mq expects that they can block at certain points while servicing a request. However, due to the way device-mapper sets up its queue, it is not able to set BLK_MQ_F_BLOCKING when it includes paths that set this flag. Patches were written to address this issue but they were rejected upstream

https://lore.kernel.org/linux-block/YcH%[email protected]/T/#t

The proposed solution was to have multipath use the bio queue_mode for multipath devices that include nvme:tcp paths.

Multipathd currently doesn't handle queue_mode as well as it could. Once a multipath device is created, queue_mode cannot be changed, but multipath doesn't enforce this. This patchset improves multipath's handling of the queue_mode feature, and then makes sure that if a multipath device includes a nvme:tcp path, it will have queue_mode set to bio.

Benjamin Marzinski (8):
libmultipath: cleanup remove_feature
libmultipath: cleanup add_feature
multipath tests: tests for adding and removing features
libmultipath: fix queue_mode feature handling multipath tests: tests for reconcile_features_with_queue_mode
libmultipath: prepare proto_id for use by non-scsi devivces
libmultipath: get nvme path transport protocol
libmultipath: enforce queue_mode bio for nmve:tcp paths

 libmultipath/configure.c   |  28 +-
 libmultipath/discovery.c   |  31 ++-
 libmultipath/dmparser.c    |   2 +
 libmultipath/print.c       |   6 +-
 libmultipath/propsel.c     |  55 ++++
 libmultipath/structs.c     | 155 +++++------
 libmultipath/structs.h     |  44 ++-
 libmultipath/structs_vec.c |   7 +
 multipath/multipath.conf.5 |  17 +-
 multipathd/fpin_handlers.c |   2 +-
 tests/Makefile             |   4 +-
 tests/features.c           | 549 +++++++++++++++++++++++++++++++++++++
 12 files changed, 784 insertions(+), 116 deletions(-)
 create mode 100644 tests/features.c
Signature · 6 lines
2.17.2

--
dm-devel mailing list
[email protected]
https://listman.redhat.com/mailman/listinfo/dm-devel