All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH v2 00/14] multipath: aio, systemd, and documentation improvements
@ 2023-10-26 17:41 mwilck
  2023-10-26 17:41 ` [PATCH v2 01/14] libmultipath: reduce log level of directio messages mwilck
                   ` (13 more replies)
  0 siblings, 14 replies; 30+ messages in thread
From: mwilck @ 2023-10-26 17:41 UTC (permalink / raw)
  To: Christophe Varoqui, Benjamin Marzinski
  Cc: dm-devel, Martin Wilck, Li Xiao Keng, Miao Guanqin, Guan Junxiong,
	Xose Vazquez Perez

From: Martin Wilck <mwilck@suse.com>

This is v2 of my "multipath: aio and systemd service improvements" series.
I have shuffled the ordering around a bit and added patches to fix issues
that had come up in the v1 review. I also fixed the error handling of the
aio code in both directio.c and io_err_stat.c.

Cc: Li Xiao Keng <lixiaokeng@huawei.com>
Cc: Miao Guanqin <miaoguanqin@huawei.com>
Cc: Guan Junxiong <guanjunxiong@huawei.com>
Cc: Xose Vazquez Perez <xose.vazquez@gmail.com>

Changes since v1:
 02/14: re-added the io_cancel() call in libcheck_free() (Ben),
        changed the way I fixed the directio test
 03/14: new (error handling)
 04/14 (was 3/6): no change, fixed Ben's remark in 05/14 in 06/14
 05/14 (was 4/6): avoid cancelling requests after calling io_destroy (Ben).
 06/14: new, avoid iocb starvation (Ben's remark for 3/6)
 07/14: new (error handling)
 08/14 (was 5/6): take systemd version into account

10-14 are new, documentation changes that seem overdue.

v1 cover letter:

The bulk of this patch set comes out of my attempts to solve
https://github.com/opensvc/multipath-tools/issues/73 and the insight
that aio memory can't be freed unless either io_getevents() returns
the iocb in question as finished, or io_destroy() has returned.
aio handling in multipathd needs more work, because io_destroy()
may block for a long time, and we must avoid to block, but I would
like to postpone that to a later patch set (I plan to add a generic
aio framework to libmultipath which could then be used by both
the directio checker and the io_err_stat code, but this isn't finished yet).

The last two patches are improvements to multipathd's systemd service and
kernel module loading logic. They are unrelated to the others.

Martin Wilck (14):
  libmultipath: reduce log level of directio messages
  libmultipath: directio: don't reset ct->running after io_cancel()
  libmultipath: directio: fix error handling
  libmultipath: io_err_stat: don't free aio memory before completion
  libmultipath: io_err_stat: call io_destroy() inside
    free_io_err_pathvec()
  libmultipath: io_err_stat: use higher number of aio slots
  libmultipath: io_err_stat: fix error handling
  multipathd.service: require modprobe@dm_multipath.service if available
  libmpathutil: remove systemd_service_enabled()
  multipath.conf.5: fix typo
  Makefile.inc, README.md: fix docs for prefix in split-usr case
  README.md: update mailing list and contributing information
  README.md: Extend the section about NVMe
  README.md: fix formatting of Changelog section

 Makefile.inc                                  |  10 +-
 README.md                                     | 115 ++++++++++++------
 libmpathutil/libmpathutil.version             |  17 +--
 libmpathutil/util.c                           |  58 ---------
 libmpathutil/util.h                           |   1 -
 libmultipath/checkers/directio.c              |  33 ++---
 libmultipath/io_err_stat.c                    |  75 +++++++-----
 libmultipath/valid.c                          |  16 +--
 multipath/Makefile                            |   6 +-
 multipath/multipath.conf.5.in                 |   2 +-
 multipathd/Makefile                           |   4 +-
 ...ltipathd.service => multipathd.service.in} |   4 +-
 tests/directio.c                              |  27 +---
 tests/valid.c                                 |  24 +---
 14 files changed, 159 insertions(+), 233 deletions(-)
 rename multipathd/{multipathd.service => multipathd.service.in} (85%)

-- 
2.42.0


^ permalink raw reply	[flat|nested] 30+ messages in thread

end of thread, other threads:[~2023-10-30 11:45 UTC | newest]

Thread overview: 30+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-10-26 17:41 [PATCH v2 00/14] multipath: aio, systemd, and documentation improvements mwilck
2023-10-26 17:41 ` [PATCH v2 01/14] libmultipath: reduce log level of directio messages mwilck
2023-10-26 17:41 ` [PATCH v2 02/14] libmultipath: directio: don't reset ct->running after io_cancel() mwilck
2023-10-27 18:54   ` Benjamin Marzinski
2023-10-26 17:41 ` [PATCH v2 03/14] libmultipath: directio: fix error handling mwilck
2023-10-27 18:54   ` Benjamin Marzinski
2023-10-26 17:41 ` [PATCH v2 04/14] libmultipath: io_err_stat: don't free aio memory before completion mwilck
2023-10-27 18:55   ` Benjamin Marzinski
2023-10-26 17:41 ` [PATCH v2 05/14] libmultipath: io_err_stat: call io_destroy() inside free_io_err_pathvec() mwilck
2023-10-27 18:55   ` Benjamin Marzinski
2023-10-26 17:41 ` [PATCH v2 06/14] libmultipath: io_err_stat: use higher number of aio slots mwilck
2023-10-27 18:56   ` Benjamin Marzinski
2023-10-26 17:41 ` [PATCH v2 07/14] libmultipath: io_err_stat: fix error handling mwilck
2023-10-27 19:09   ` Benjamin Marzinski
2023-10-26 17:41 ` [PATCH v2 08/14] multipathd.service: require modprobe@dm_multipath.service if available mwilck
2023-10-27 19:09   ` Benjamin Marzinski
2023-10-27 20:05   ` Benjamin Marzinski
2023-10-30 11:45     ` Martin Wilck
2023-10-26 17:41 ` [PATCH v2 09/14] libmpathutil: remove systemd_service_enabled() mwilck
2023-10-26 17:41 ` [PATCH v2 10/14] multipath.conf.5: fix typo mwilck
2023-10-27 19:10   ` Benjamin Marzinski
2023-10-26 17:41 ` [PATCH v2 11/14] Makefile.inc, README.md: fix docs for prefix in split-usr case mwilck
2023-10-27 19:27   ` Benjamin Marzinski
2023-10-26 17:41 ` [PATCH v2 12/14] README.md: update mailing list and contributing information mwilck
2023-10-27 19:29   ` Benjamin Marzinski
2023-10-30 11:41     ` Martin Wilck
2023-10-26 17:41 ` [PATCH v2 13/14] README.md: Extend the section about NVMe mwilck
2023-10-27 19:34   ` Benjamin Marzinski
2023-10-26 17:41 ` [PATCH v2 14/14] README.md: fix formatting of Changelog section mwilck
2023-10-27 19:35   ` Benjamin Marzinski

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.