Skip to content

multipath-tools: avoid I/O during uevent processing

Martin Wilck dm-devel 3 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v3 Latest10 patches 4 repliesIn review
  2. v29 patches 5 repliesSuperseded
  3. v19 patches 4 repliesSuperseded

Changes in v3 from the cover letter

- added 8/10 "tidy up do_set_from_hwe() with statement expression" (Hannes), renumber subsequent patches accordingly.
- 9/10: cleanup ugly macro usage; do retrieve VPD for "unknown" SCSI storage devices

Patches in v3 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/10libmultipath: add sysfs_get_inquiry()libmultipath/discovery.c libmultipath/discovery.h+22 -70 replies
2/10libmultipath: alua: make API more consistentlibmultipath/discovery.c libmultipath/prioritizers/alua.c libmultipath/prioritizers/alua_rtpg.c +2 more+27 -180 replies
3/10libmultipath: alua: try to retrieve inquiry data from sysfslibmultipath/prioritizers/alua_rtpg.c+17 -00 replies
4/10libmultipath: constify sysfs_get_timeout()libmultipath/discovery.c libmultipath/discovery.h+2 -20 replies
5/10libmultipath: detect_alua(): use system timeoutlibmultipath/discovery.c+6 -31 reply
6/10libmultipath: lazy tpgs probinglibmultipath/discovery.c libmultipath/discovery.h libmultipath/propsel.c +1 more+27 -170 replies
7/10libmultipath: don't link alua_rtpg.o twicelibmultipath/prioritizers/Makefile+0 -30 replies
8/10libmultipath: tidy up do_set_from_hwe() with statement expressionlibmultipath/propsel.c+15 -70 replies
9/10libmultipath: check_rdac(): pre-check in hwtablelibmultipath/propsel.c+5 -00 replies
10/10libmultipath: hwtable: add Lenovo DE serieslibmultipath/hwtable.c+20 -02 replies

Reviews trailers per patch

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

PatchSteven SchremmerBenjamin Marzinski
SeriesR-b
1/10
2/10
3/10
4/10
5/10R-b
6/10
7/10
8/10
9/10
10/10R-b

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/10] multipath-tools: avoid I/O during uevent processing

Hi Christophe, hi Ben,

the bulk of this series attempts to avoid unnecessary I/O for "multipath -u" calls from udev rules. I came up with it in a recent attempt to debug avoid "multipath -u" hangups during boot. I found that the detect_alua() call in the get_refwwid->pathinfo->scsi_ioctl_pathinfo call sequence would cause an sg ioctl to be sent for every "multipath -u" invocation. That's obvious nonsense, we don't need to detect ALUA capabilities to find out if a device is a potential multipath member.

So, rather than setting pp->tpgs in pathinfo, I resorted to a "lazy" approach where ALUA capabilities are probed when they are needed, no sooner. I also cleaned up the ALUA code a bit (still some more to go), and made it attempt to read INQUIRY data from sysfs.

Regards,
Martin

Changes v2->v3:

- added 8/10 "tidy up do_set_from_hwe() with statement expression" (Hannes), renumber subsequent patches accordingly.
- 9/10: cleanup ugly macro usage; do retrieve VPD for "unknown" SCSI storage devices

Changes v1->v2:

- 6/9: remove one remaining direct access to pp->tpgs
- 9/9: use non-personal email address for maintainer

Martin Wilck (10):
libmultipath: add sysfs_get_inquiry()
libmultipath: alua: make API more consistent
libmultipath: alua: try to retrieve inquiry data from sysfs
libmultipath: constify sysfs_get_timeout()
libmultipath: detect_alua(): use system timeout
libmultipath: lazy tpgs probing
libmultipath: don't link alua_rtpg.o twice
libmultipath: tidy up do_set_from_hwe() with statement expression
libmultipath: check_rdac(): pre-check in hwtable
libmultipath: hwtable: add Lenovo DE series

 libmultipath/discovery.c              | 46 +++++++++++++++++-------
 libmultipath/discovery.h              | 10 +++---
 libmultipath/hwtable.c                | 20 +++++++++++
 libmultipath/prioritizers/Makefile    |  3 --
 libmultipath/prioritizers/alua.c      |  4 +--
 libmultipath/prioritizers/alua_rtpg.c | 45 +++++++++++++++++------
 libmultipath/prioritizers/alua_rtpg.h |  7 ++--
 libmultipath/propsel.c                | 52 ++++++++++++++++++---------
 multipathd/main.c                     |  7 ++--
 9 files changed, 139 insertions(+), 55 deletions(-)
Signature · 1 line
2.21.0