waiteventloop loops once more than it needs to
Benjamin Marzinski
maintainerIn waitevntloop(), you get the current event_nr, and then wait for an event. After the event, the event_nr will always be at least one greater. This means that waiteventloop will always run mark_failed_path() once more than needed. This patch, against multipath-tools-0.4.4-pre15, fixes that.
-Ben
multipathd/main.c +1 -1
@@ -298,7 +298,7 @@dm_task_no_open_count (dmt);dm_task_run (dmt); - + waiter->event_nr++;/* * upon event ... */
Right, applied.
Quoted 10 lines · Benjamin Marzinski
In
waitevntloop(), you get the currentevent_nr, and then wait for an event. After the event, theevent_nrwill always be at least one greater. This means that waiteventloop will always runmark_failed_path()once more than needed. This patch, against multipath-tools-0.4.4-pre15, fixes that.-Ben
--
dm-devel mailing list
[email protected]
https://www.redhat.com/mailman/listinfo/dm-devel
Signature · 1 line
christophe varoqui <[email protected]>