Skip to contentSkip to conversation

multipathd: remove reset option from update_multipath

PATCH Martin Wilck 1 participant 2 messages Dec 14, 2023 2 messages not in the archive Device mapper

lore
Share & tools
lore

A message that is not in the archive (sent off-list or not yet received): [email protected]

A message that is not in the archive (sent off-list or not yet received): [email protected]

#2 lore raw
Quoted 5 lines · Benjamin Marzinski

Since all callers now set the reset argument, it's unnecessary to keep
it as an argument.

This breaks the dmevents test, because __wrap_update_multipath() hasn't been updated. I'll fix it.

Martin

#3 lore raw
Quoted 10 lines · Martin Wilck
Quoted 5 lines · Benjamin Marzinski

Since all callers now set the reset argument, it's unnecessary to keep
it as an argument.

This breaks the dmevents test, because __wrap_update_multipath() hasn't
been updated. I'll fix it.

Actually, this caused the dmevents test to hang, because the failure in __wrap_update_multipath() would cause an immediate return to the cmocka code, bypassing cleanup_lock() in dmevent_loop(), causing deadlock when the lock is taken in the next invocation.

See e.g.
https://github.com/openSUSE/multipath-tools/actions/runs/7116036356/job/19373506650#step:17:49

Martin