Skip to content

Commit

Permalink
multipathd: fix flush check in flush_map()
Browse files Browse the repository at this point in the history
Forgot the comparison in the "if" statement.

Fixes 8a38983 ("multipathd: sync features on flush_map failure corner case")

Signed-off-by: Benjamin Marzinski <[email protected]>
Reviewed-by: Martin Wilck <[email protected]>
  • Loading branch information
bmarzins authored and mwilck committed Jul 19, 2024
1 parent d504d83 commit 2ca9f38
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion multipathd/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -790,7 +790,7 @@ flush_map(struct multipath * mpp, struct vectors * vecs)
{
int r = dm_suspend_and_flush_map(mpp->alias, 0);
if (r != DM_FLUSH_OK) {
if (DM_FLUSH_FAIL_CANT_RESTORE)
if (r == DM_FLUSH_FAIL_CANT_RESTORE)
remove_feature(&mpp->features, "queue_if_no_path");
condlog(0, "%s: can't flush", mpp->alias);
return r;
Expand Down

0 comments on commit 2ca9f38

Please sign in to comment.