<div dir="ltr">The rcu v2 branch is now merged.<div><br></div><div>Thanks.</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Mon, Jul 4, 2016 at 9:08 AM, Hannes Reinecke <span dir="ltr"><<a href="mailto:hare@suse.de" target="_blank">hare@suse.de</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi all,<br>
<br>
as Benjamin Marzinski pointed out the 'config' structure is<br>
not protected, but it will be re-allocated whenever we do a<br>
reconfiguration.<br>
This leads to inevitable race conditions, which ATM are only<br>
imperfectly handled.<br>
With this patchset accesses to the configuration are RCU-protected,<br>
so we are guaranteed that the pointer to the configuration is always<br>
valid.<br>
To facilitate this the patchset moves the 'cmd', 'dev', and 'dev_type'<br>
entries out of the configuration, and replaces them with local variables<br>
in multipath.<br>
<br>
Changes to the original version:<br>
- Fixup arguments for get_mpe_wwid() and find_mpe() as<br>
found by Ben Marzinski<br>
- Revert to original handling in get_state() as found<br>
by Ben Marzinski<br>
<br>
The patchset can be found at<br>
<br>
github.com:/hreinecke/multipath-tools.git<br>
branch rcu.v2<br>
<br>
As usual, comments and reviews are welcome.<br>
<br>
Hannes Reinecke (26):<br>
Revert patch 'move filter_devnode() under vector lock'<br>
Use 'mptable' as argument for find_mpe() and get_mpe_wwid()<br>
config: set 'deferred_remove' defaults at correct call<br>
devmapper: explicit config settings<br>
dmparser: use 'is_daemon' as argument for disassemble_map()<br>
libmultipath: use 'is_daemon' as argument for domap() etc<br>
libmultipath: drop 'daemon' configuration setting<br>
libmultipath: Do not access 'conf->cmd' in domap()<br>
libmultipath: add 'cmd' as argument for get_refwwid()<br>
libmultipath: fallback to checking environment variable in<br>
get_udev_uid()<br>
multipath: make 'cmd' internal to multipath program<br>
multipath: make 'dev_type' internal to the multipath program<br>
multipath: make 'dev' internal to the multipath program<br>
libmultipath: separate out 'udev' config entry<br>
libmultipath: use 'checkint' as argument for sysfs_set_scsi_tmo()<br>
discovery: Pass in 'hwtable' for get_state() and<br>
scsi_sysfs_discovery()<br>
libmultipath: use 'struct config' as argument for pathinfo()<br>
checkers: use 'multipath_dir' as argument<br>
prio: use 'multipath_dir' as argument<br>
libmultipath: use 'timeout' as argument for getprio()<br>
libmultipath: use explicit 'config' argument for configuration file<br>
parsing<br>
libmultipath: use (get,put)_multipath_config() accessors<br>
multipathd: Fixup commandline argument handling<br>
multipath: make 'struct config' a local variable<br>
multipathd: use userspace RCU to access configuration<br>
libmultipath: Allocate keywords directly<br>
<br>
libmpathpersist/mpath_persist.c | 28 +--<br>
libmpathpersist/mpath_persist.h | 6 +-<br>
libmultipath/checkers.c | 22 ++-<br>
libmultipath/checkers.h | 6 +-<br>
libmultipath/config.c | 43 ++---<br>
libmultipath/config.h | 18 +-<br>
libmultipath/configure.c | 163 +++++++++++------<br>
libmultipath/configure.h | 10 +-<br>
libmultipath/debug.c | 3 +<br>
libmultipath/devmapper.c | 21 +--<br>
libmultipath/devmapper.h | 4 +-<br>
libmultipath/dict.c | 79 ++++----<br>
libmultipath/dict.h | 2 +-<br>
libmultipath/discovery.c | 108 ++++++-----<br>
libmultipath/discovery.h | 12 +-<br>
libmultipath/dmparser.c | 6 +-<br>
libmultipath/dmparser.h | 2 +-<br>
libmultipath/parser.c | 61 +++----<br>
libmultipath/parser.h | 27 +--<br>
libmultipath/print.c | 72 ++++----<br>
libmultipath/print.h | 16 +-<br>
libmultipath/prio.c | 40 +++--<br>
libmultipath/prio.h | 14 +-<br>
libmultipath/prioritizers/alua.c | 12 +-<br>
libmultipath/prioritizers/alua_rtpg.c | 25 +--<br>
libmultipath/prioritizers/alua_rtpg.h | 6 +-<br>
libmultipath/prioritizers/emc.c | 8 +-<br>
libmultipath/prioritizers/hds.c | 8 +-<br>
libmultipath/prioritizers/hp_sw.c | 46 ++---<br>
libmultipath/prioritizers/ontap.c | 19 +-<br>
libmultipath/prioritizers/rdac.c | 8 +-<br>
libmultipath/propsel.c | 99 +++++-----<br>
libmultipath/propsel.h | 48 ++---<br>
libmultipath/structs_vec.c | 62 ++++---<br>
libmultipath/structs_vec.h | 13 +-<br>
libmultipath/waiter.c | 4 +<br>
libmultipath/wwids.c | 22 ++-<br>
mpathpersist/main.c | 24 ++-<br>
multipath/main.c | 199 ++++++++++++---------<br>
multipathd/Makefile | 2 +-<br>
multipathd/cli_handlers.c | 84 ++++++---<br>
multipathd/main.c | 327 +++++++++++++++++++++++-----------<br>
multipathd/uxlsnr.c | 5 -<br>
43 files changed, 1057 insertions(+), 727 deletions(-)<br>
<span class="HOEnZb"><font color="#888888"><br>
--<br>
2.6.6<br>
<br>
</font></span></blockquote></div><br></div>