Skip to content

Multipath patch dump

Benjamin Marzinski dm-devel 3 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v3 Latest18 patches 1 replyIn review
  2. v217 patches 19 repliesSuperseded
  3. v115 patches 33 repliesSuperseded

Changes in v3 from the cover letter

This removes the conflicts with Martin's earlier patches, specifically

Patches in v3 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/18multipathd: warn when configuration has been changed.libmultipath/config.h multipathd/main.c multipathd/uxlsnr.c+134 -60 replies
2/18multipathd: staticify uxlsnr variables/functionsmultipathd/uxlsnr.c+6 -60 replies
3/18Fix leak in mpathpersistmpathpersist/main.c+1 -00 replies
4/18libmultipath: remove unused path->prio_argslibmultipath/structs.h+0 -10 replies
5/18libmultipath: constify get_unaligned_be*libmultipath/unaligned.h+2 -20 replies
6/18libmultipath: add missing hwe mpe variable mergeslibmultipath/config.c+8 -00 replies
7/18libmultipath: fix sgio_get_vpd loopinglibmultipath/discovery.c tests/vpd.c+52 -370 replies
8/18libmultipath: add vend_id to get_vpd_sgiolibmultipath/discovery.c libmultipath/discovery.h libmultipath/propsel.c +1 more+9 -90 replies
9/18libmultipath: add code to get vendor specific vpd datalibmultipath/config.c libmultipath/config.h libmultipath/dict.c +7 more+148 -10 replies
10/18libmultipath: change how the checker async is setlibmpathpersist/mpath_persist.c libmultipath/discovery.c multipath/main.c+6 -70 replies
11/18libmultipath: change failed path prio timeoutlibmultipath/discovery.c libmultipath/prio.c+9 -110 replies
12/18multipathd: add new paths under vecs lockmultipathd/main.c+8 -80 replies
13/18libmultipath: add new checker class functionslibmultipath/checkers.c libmultipath/checkers.h multipathd/main.c+30 -10 replies
14/18libmultipath: make directio checker share io contextslibmultipath/checkers/directio.c multipath/multipath.conf.5+281 -620 replies
15/18tests: add directio unit teststests/Makefile tests/directio.c+706 -10 replies
16/18fixup! libmultipath: add code to get vendor specific vpd datalibmultipath/discovery.c libmultipath/propsel.c libmultipath/propsel.h+3 -30 replies
17/18fixup! libmultipath: make directio checker share io contextslibmultipath/checkers/directio.c+1 -10 replies
18/18tests: make directio tests able to work on a real devicetests/Makefile tests/directio.c tests/directio_test_dev+130 -40 replies

Reviews trailers per patch

8 of 18 patches have a Reviewed-by or Acked-by.

PatchMartin Wilck
1/18
2/18
3/18R-b
4/18R-b
5/18R-b
6/18R-b
7/18
8/18R-b
9/18
10/18R-b
11/18
12/18R-b
13/18R-b
14/18
15/18
16/18
17/18
18/18

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 00/18] Multipath patch dump

This patch set is has multiple parts.

patch 01 is just a resubmit of my previous patch, with Martin's corrections added.

Patches 02 - 06 are miscellaneous fixes and cleanups

Patches 07 - 09 are related to adding a new format wildcard, at the
request of HPE, that allows multipath to get and display information from the vendor specific VPD pages

Patches 10 - 18 are the part that needs the most review, patch 14
especially. It turns out that on machines with a large number of cores, io_destroy(), which is used by the directio checker, can take a long time to complete. Talking to some kernel people at Red Hat, I was told that this isn't a bug. It's working as expected, and multipath shouldn't be issuing so many io_destroy() calls (1 per path, when multipath or multipathd stops). Cutting out the io_destroy calls involved a major change to the directio checker. It's pretty hard to test a lot of the corner cases on actual hardware, so I've written a bunch of unit tests for this (patches 16 & 17).

Changes in v3:
This removes the conflicts with Martin's earlier patches, specifically

0003-libmultipath-fix-leak-in-foreign-code.patch
removed in favor of Martin's
"libmultipath: _init_foreign(): fix possible memory leak" patch

0016-fixup-libmultipath-add-code-to-get-vendor-specific-v.patch 0017-fixup-libmultipath-make-directio-checker-share-io-co.patch
New patches to fix compile-time errors resulting from the rebase

0018-tests-make-directio-tests-able-to-work-on-a-real-dev.patch
Fix conflicts between with Martin's earlier patches

Changes in v2:
0001-multipathd-warn-when-configuration-has-been-changed.patch
Changed to reflect Martin Wilck's comments

0002-multipathd-staticify-uxlsnr-variables-functions.patch
New patch

0008-libmultipath-fix-sgio_get_vpd-looping.patch
Test has been changed to keep create_vpd83 the same, and overwrite the length in the actual test, as suggested by Martin Wilck

0010-libmultipath-add-code-to-get-vendor-specific-vpd-dat.patch

	The information to find the vpd page and how to decode it is
	now simply the index in a table of name -> page_nr mappings

0012-libmultipath-change-failed-path-prio-timeout.patch
The timeout argument has been renamed to avoid confusion, as suggested by Martin Wilck

0015-libmultipath-make-directio-checker-share-io-contexts.patch
Minor changes to print more useful messages, and avoid printing anything when we get a non-zero io_cancel() result, as suggested by Martin Wilck

0016-tests-add-directio-unit-tests.patch
Minor change to improve readability, as suggested by Martin Wilck

0017-tests-make-directio-tests-able-to-work-on-a-real-dev.patch
New patch. This adds the ability to set a testing device, so you can run the directio tests on an actual device

Benjamin Marzinski (16):
multipathd: warn when configuration has been changed.
multipathd: staticify uxlsnr variables/functions Fix leak in mpathpersist
libmultipath: remove unused path->prio_args
libmultipath: constify get_unaligned_be*
libmultipath: add missing hwe mpe variable merges
libmultipath: fix sgio_get_vpd looping
libmultipath: add vend_id to get_vpd_sgio
libmultipath: add code to get vendor specific vpd data
libmultipath: change how the checker async is set
libmultipath: change failed path prio timeout
multipathd: add new paths under vecs lock
libmultipath: add new checker class functions
libmultipath: make directio checker share io contexts
tests: add directio unit tests
tests: make directio tests able to work on a real device

Martin Wilck (2):
fixup! libmultipath: add code to get vendor specific vpd data fixup! libmultipath: make directio checker share io contexts

 libmpathpersist/mpath_persist.c  |   2 +-
 libmultipath/checkers.c          |  29 +-
 libmultipath/checkers.h          |   1 +
 libmultipath/checkers/directio.c | 336 ++++++++++---
 libmultipath/config.c            |  10 +
 libmultipath/config.h            |   2 +
 libmultipath/dict.c              |  38 ++
 libmultipath/discovery.c         |  80 ++-
 libmultipath/discovery.h         |   2 +-
 libmultipath/hwtable.c           |   1 +
 libmultipath/print.c             |  25 +
 libmultipath/prio.c              |   6 +-
 libmultipath/propsel.c           |  20 +-
 libmultipath/propsel.h           |   1 +
 libmultipath/structs.h           |  16 +-
 libmultipath/unaligned.h         |   4 +-
 mpathpersist/main.c              |   1 +
 multipath/main.c                 |   1 +
 multipath/multipath.conf.5       |  15 +-
 multipathd/main.c                |  18 +-
 multipathd/uxlsnr.c              | 150 +++++-
 tests/Makefile                   |  19 +-
 tests/directio.c                 | 812 +++++++++++++++++++++++++++++++
 tests/directio_test_dev          |   4 +
 tests/vpd.c                      |  87 ++--
 25 files changed, 1527 insertions(+), 153 deletions(-)
 create mode 100644 tests/directio.c
 create mode 100644 tests/directio_test_dev
Signature · 1 line
2.17.2