From patchwork Thu Dec 5 03:56:36 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Benjamin Marzinski X-Patchwork-Id: 13894693 X-Patchwork-Delegate: bmarzins@redhat.com Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 22C6E19066E for ; Thu, 5 Dec 2024 03:56:49 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=170.10.133.124 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1733371013; cv=none; b=rGUiX+Z40NV07Hg/lkfE3EF8PwYxabxY/PDFA3hX0Xnruq/Y4sLn20Qo3vUNPNObjoO+JrdvLkf12bYkMEfq8ivqytKNFz25rZcgYCmGEZS1+z2BJbhgPANAOTn6TQpNjQ5jHvFpK0VL73FPyDBYUasZdRxyMHsca7yhUs5JTYM= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1733371013; c=relaxed/simple; bh=8gMMo64Ex880FvGgkWpFESfJs1PIv5XzQTmJZC8X1vU=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version:content-type; b=E9thx3T94wlM0tgT5fvehOQmO+/VKebnA48bbGDYRrf9TzylrVUarQ73ulCNkqP/0sLsP4PwaaywmB07tWFTD0NNYB0+Ez4IEvkbajbuhiCN+FxtAwp1C/aY1L0TAnkVQ/XRhazsc2WBNmDVJXu22rWQIc8UpPnD5EcSQPzrW+E= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=redhat.com; spf=pass smtp.mailfrom=redhat.com; dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b=WVXUh5Qn; arc=none smtp.client-ip=170.10.133.124 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=redhat.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=redhat.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b="WVXUh5Qn" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1733371007; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=CYRk2qa7va3GuJDiVJlCAi8KtGixtlYG+1Otd7cliAE=; b=WVXUh5QnL2/roWOd/IwtKLeIXZkawCvuP3Cnv33KTxM7JIgZ+aRAyRNtdPETpQCR2UjxvO zys6JUd48npKP4nnrtcgBQB6JuKvxmE4MIsXtrunveJeCow7V9e/VYIk251QqVCc7/Peq/ 5YAPJjOTwPTm8u2l0RthZPJ0R+D6IQk= Received: from mx-prod-mc-05.mail-002.prod.us-west-2.aws.redhat.com (ec2-54-186-198-63.us-west-2.compute.amazonaws.com [54.186.198.63]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-26-Lb_S7UNZPXa0GNenhsqt3g-1; Wed, 04 Dec 2024 22:56:42 -0500 X-MC-Unique: Lb_S7UNZPXa0GNenhsqt3g-1 X-Mimecast-MFC-AGG-ID: Lb_S7UNZPXa0GNenhsqt3g Received: from mx-prod-int-03.mail-002.prod.us-west-2.aws.redhat.com (mx-prod-int-03.mail-002.prod.us-west-2.aws.redhat.com [10.30.177.12]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by mx-prod-mc-05.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTPS id A3EF31956095; Thu, 5 Dec 2024 03:56:40 +0000 (UTC) Received: from bmarzins-01.fast.eng.rdu2.dc.redhat.com (bmarzins-01.fast.eng.rdu2.dc.redhat.com [10.6.23.12]) by mx-prod-int-03.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTPS id 3A23819560A2; Thu, 5 Dec 2024 03:56:40 +0000 (UTC) Received: from bmarzins-01.fast.eng.rdu2.dc.redhat.com (localhost [127.0.0.1]) by bmarzins-01.fast.eng.rdu2.dc.redhat.com (8.17.2/8.17.1) with ESMTPS id 4B53ucJe1218969 (version=TLSv1.3 cipher=TLS_AES_256_GCM_SHA384 bits=256 verify=NOT); Wed, 4 Dec 2024 22:56:38 -0500 Received: (from bmarzins@localhost) by bmarzins-01.fast.eng.rdu2.dc.redhat.com (8.17.2/8.17.2/Submit) id 4B53ucv91218968; Wed, 4 Dec 2024 22:56:38 -0500 From: Benjamin Marzinski To: Christophe Varoqui Cc: device-mapper development , Martin Wilck Subject: [PATCH 1/3] libmultipath: Don't skip set_path_max_sectors_kb() Date: Wed, 4 Dec 2024 22:56:36 -0500 Message-ID: <20241205035638.1218953-2-bmarzins@redhat.com> In-Reply-To: <20241205035638.1218953-1-bmarzins@redhat.com> References: <20241205035638.1218953-1-bmarzins@redhat.com> Precedence: bulk X-Mailing-List: dm-devel@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-Scanned-By: MIMEDefang 3.0 on 10.30.177.12 X-Mimecast-Spam-Score: 0 X-Mimecast-MFC-PROC-ID: UcSiAVKfoPnYhYU3IU-VXtl1IwpMIDu8ZDsPDi8YrTM_1733371000 X-Mimecast-Originator: redhat.com content-type: text/plain; charset="US-ASCII"; x-default=true If a multipath device already has need_reload set when a path is adopted, it won't call set_path_max_sectors_kb() because of short-circuit evaluation. This isn't what's intended. Fixes: e5e20c7b ("libmultipath: set max_sectors_kb in adopt_paths()") Signed-off-by: Benjamin Marzinski Reviewed-by: Martin Wilck --- libmultipath/structs_vec.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/libmultipath/structs_vec.c b/libmultipath/structs_vec.c index d22056ca..60051092 100644 --- a/libmultipath/structs_vec.c +++ b/libmultipath/structs_vec.c @@ -335,8 +335,7 @@ int adopt_paths(vector pathvec, struct multipath *mpp, */ if (!current_mpp || !mp_find_path_by_devt(current_mpp, pp->dev_t)) - mpp->need_reload = mpp->need_reload || - set_path_max_sectors_kb(pp, mpp->max_sectors_kb); + mpp->need_reload = set_path_max_sectors_kb(pp, mpp->max_sectors_kb) || mpp->need_reload; } pp->mpp = mpp; From patchwork Thu Dec 5 03:56:37 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Benjamin Marzinski X-Patchwork-Id: 13894691 X-Patchwork-Delegate: bmarzins@redhat.com Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id CE984190674 for ; Thu, 5 Dec 2024 03:56:45 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=170.10.129.124 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1733371007; cv=none; b=DRXObqJFR5S4orGNOmFCD5bjPuvMgbyrId8ZUpPO0jDjKdLI2wVMXpCbemFSCJvWIUdmg6B6yzYUgNYQGTDDRBlf2CEgcw/P2DcQfG7e5Sn/BxJmIZdkiMhw5MYxo6MP+9NvG1Y/Cs5KYNzD3aUSQSvJbZn7C0uewvYVhYECcvU= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1733371007; c=relaxed/simple; bh=kS8DVlkG8URKmHv/+e1FANSbJjp59DcxBmZ6PRtQr64=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version:content-type; b=HN8juWg8Sn3Du1jchflMdrBmr5IjsscvtOVlq2H+s3YERCaSM4Fm8xbk5hSLB7kRxmJbeC1CkOhCtYMkAcHLACSjxVdz3jNam9FvLWc7B07Z+rXT6vZY2FVsrrzS3PVOArldKG2srlyp1Z9FqG+yt9Bbjg0GiVIWkIN89/sQGsw= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=redhat.com; spf=pass smtp.mailfrom=redhat.com; dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b=ZR0DrlET; arc=none smtp.client-ip=170.10.129.124 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=redhat.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=redhat.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b="ZR0DrlET" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1733371004; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=yAbPJ5h1F18WL/OuebGEH+j4sFp7tDdXze/pOTJRjlA=; b=ZR0DrlETC4d6PNYeenEsaYYaayOaL0eYJ0G/D8F6BE9hOekCkyx/coTwaSYg8u7FQIoLn3 rORd1PfyMuq+UhlPbm8TmENqb6wn1owVW5YKf4O3RxjRTKPGdwaJSzD1hTj6wfGX6ZE/WN QBZ+tcw1g1/gbpvJyQoPIi4gIC5iOiQ= Received: from mx-prod-mc-03.mail-002.prod.us-west-2.aws.redhat.com (ec2-54-186-198-63.us-west-2.compute.amazonaws.com [54.186.198.63]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-573--RCUngyINqmrHAOe3p7jvQ-1; Wed, 04 Dec 2024 22:56:41 -0500 X-MC-Unique: -RCUngyINqmrHAOe3p7jvQ-1 X-Mimecast-MFC-AGG-ID: -RCUngyINqmrHAOe3p7jvQ Received: from mx-prod-int-03.mail-002.prod.us-west-2.aws.redhat.com (mx-prod-int-03.mail-002.prod.us-west-2.aws.redhat.com [10.30.177.12]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by mx-prod-mc-03.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTPS id 95EFD19560B6; Thu, 5 Dec 2024 03:56:40 +0000 (UTC) Received: from bmarzins-01.fast.eng.rdu2.dc.redhat.com (bmarzins-01.fast.eng.rdu2.dc.redhat.com [10.6.23.12]) by mx-prod-int-03.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTPS id 44F9919560AD; Thu, 5 Dec 2024 03:56:40 +0000 (UTC) Received: from bmarzins-01.fast.eng.rdu2.dc.redhat.com (localhost [127.0.0.1]) by bmarzins-01.fast.eng.rdu2.dc.redhat.com (8.17.2/8.17.1) with ESMTPS id 4B53ucqU1218973 (version=TLSv1.3 cipher=TLS_AES_256_GCM_SHA384 bits=256 verify=NOT); Wed, 4 Dec 2024 22:56:38 -0500 Received: (from bmarzins@localhost) by bmarzins-01.fast.eng.rdu2.dc.redhat.com (8.17.2/8.17.2/Submit) id 4B53uc701218972; Wed, 4 Dec 2024 22:56:38 -0500 From: Benjamin Marzinski To: Christophe Varoqui Cc: device-mapper development , Martin Wilck , Martin Wilck Subject: [PATCH 2/3] multipathd: reload maps in checkerloop() if necessary. Date: Wed, 4 Dec 2024 22:56:37 -0500 Message-ID: <20241205035638.1218953-3-bmarzins@redhat.com> In-Reply-To: <20241205035638.1218953-1-bmarzins@redhat.com> References: <20241205035638.1218953-1-bmarzins@redhat.com> Precedence: bulk X-Mailing-List: dm-devel@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-Scanned-By: MIMEDefang 3.0 on 10.30.177.12 X-Mimecast-Spam-Score: 0 X-Mimecast-MFC-PROC-ID: TTBAHhykMmtyoGAxSW9wwJ0k_HM3qDs_DswTh3FlC6E_1733371000 X-Mimecast-Originator: redhat.com content-type: text/plain; charset="US-ASCII"; x-default=true update_pathvec_from_dm() may set mpp->need_reload if it finds inconsistent settings. In this case, the map should be reloaded, but so far we don't do this reliably. Add a call to reload_and_sync_map() when updating the maps at the end of a loop in checkerloop(). Suggested-by: Martin Wilck Signed-off-by: Benjamin Marzinski Reviewed-by: Martin Wilck --- multipathd/main.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/multipathd/main.c b/multipathd/main.c index fcab1ed3..c1ae44f2 100644 --- a/multipathd/main.c +++ b/multipathd/main.c @@ -3038,7 +3038,10 @@ checkerloop (void *ap) start_time.tv_sec); if (checker_state == CHECKER_FINISHED) { vector_foreach_slot(vecs->mpvec, mpp, i) { - if (update_mpp_prio(vecs, mpp) == 2) { + if (update_mpp_prio(vecs, mpp) == 2 || + (mpp->need_reload && + mpp->synced_count > 0 && + reload_and_sync_map(mpp, vecs) == 2)) { /* multipath device deleted */ i--; } From patchwork Thu Dec 5 03:56:38 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Benjamin Marzinski X-Patchwork-Id: 13894690 X-Patchwork-Delegate: bmarzins@redhat.com Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 2DE932391A6 for ; Thu, 5 Dec 2024 03:56:44 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=170.10.129.124 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1733371007; cv=none; b=oUk1rZjqXbvQCC/8xy3B+IFk5xFy+1/LZMik8OIlm2Yfpuyjg+vBI9vXlHuIR12lJ+TGYx4I03pp7L44+tLjbsn7yocFf44ev88/GDeM62Xh1bBZNVBT5mbGFHkUYYfEumA/2qbLz6Zl4cMPlAcQEJiZKpS6QyOFqUsNigC5iAw= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1733371007; c=relaxed/simple; bh=WkWsfvJbLTU2lpShM7JuzIh4DuqBw1F1ZDTM0kwkeiU=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version:content-type; b=ik2UGQkHoS1PqPMsCAVc7AjNUDYZNJOBaSaQoFvB88OedhcSW8WBIiTB3YBLSUGmzcZI2vQqCT16QndOsf5lMDi+FWZ8F5QfgG5rMctTHnvTsIxXCxA0LGbPJT80Gp8yAOhEApey9BtNEuX1d2CN98ZOXV4pqFpbab4X+CRGT3M= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=redhat.com; spf=pass smtp.mailfrom=redhat.com; dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b=OIDBA2ot; arc=none smtp.client-ip=170.10.129.124 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=redhat.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=redhat.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b="OIDBA2ot" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1733371003; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=5oi4qJo9HOffjsNYF0vIl0a8cVua4KEfiMIT0RCz9pE=; b=OIDBA2ot8mHs+N2qh8QTl1Z55VEWFFPnw7madpHTl/UB31lzqGZIurl/B9c6bhAktSAqHx iAP3npWImD8qzUwamo3FFbbjeX5jrPgyOfR7xv3uuG6u62gIxyVNGnHfTbD0Nw2oW/VQwQ 4WU41j3A4Ep/jYzj2RUkIZ9DJ/qbN/Q= Received: from mx-prod-mc-01.mail-002.prod.us-west-2.aws.redhat.com (ec2-54-186-198-63.us-west-2.compute.amazonaws.com [54.186.198.63]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-9-CMXtJ_4NPe6zwioYSdpE8g-1; Wed, 04 Dec 2024 22:56:41 -0500 X-MC-Unique: CMXtJ_4NPe6zwioYSdpE8g-1 X-Mimecast-MFC-AGG-ID: CMXtJ_4NPe6zwioYSdpE8g Received: from mx-prod-int-05.mail-002.prod.us-west-2.aws.redhat.com (mx-prod-int-05.mail-002.prod.us-west-2.aws.redhat.com [10.30.177.17]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by mx-prod-mc-01.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTPS id 076A4195608F; Thu, 5 Dec 2024 03:56:41 +0000 (UTC) Received: from bmarzins-01.fast.eng.rdu2.dc.redhat.com (bmarzins-01.fast.eng.rdu2.dc.redhat.com [10.6.23.12]) by mx-prod-int-05.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTPS id 7E6761956052; Thu, 5 Dec 2024 03:56:40 +0000 (UTC) Received: from bmarzins-01.fast.eng.rdu2.dc.redhat.com (localhost [127.0.0.1]) by bmarzins-01.fast.eng.rdu2.dc.redhat.com (8.17.2/8.17.1) with ESMTPS id 4B53udGK1218977 (version=TLSv1.3 cipher=TLS_AES_256_GCM_SHA384 bits=256 verify=NOT); Wed, 4 Dec 2024 22:56:39 -0500 Received: (from bmarzins@localhost) by bmarzins-01.fast.eng.rdu2.dc.redhat.com (8.17.2/8.17.2/Submit) id 4B53udXF1218976; Wed, 4 Dec 2024 22:56:39 -0500 From: Benjamin Marzinski To: Christophe Varoqui Cc: device-mapper development , Martin Wilck Subject: [PATCH 3/3] multipathd: Don't call select_action in reload_map Date: Wed, 4 Dec 2024 22:56:38 -0500 Message-ID: <20241205035638.1218953-4-bmarzins@redhat.com> In-Reply-To: <20241205035638.1218953-1-bmarzins@redhat.com> References: <20241205035638.1218953-1-bmarzins@redhat.com> Precedence: bulk X-Mailing-List: dm-devel@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-Scanned-By: MIMEDefang 3.0 on 10.30.177.17 X-Mimecast-Spam-Score: 0 X-Mimecast-MFC-PROC-ID: UJxqMZ0a9I1YPxPU7kZvQAG2URkB3aheuUw8TGFZMaM_1733371001 X-Mimecast-Originator: redhat.com content-type: text/plain; charset="US-ASCII"; x-default=true reload_map() was calling select_action() with force_reload set. Since mpp will always be a member of vecs->mpvec when reload_map() is called, when cmpp and cmpp_by_name are looked up in select_action(), they will just point to mpp. This means that none of the early checks related to cmpp in select_action() will do anything, and the action will always end up being ACT_RELOAD. So we can just set ACT_RELOAD in reload_map() and skip the work. Additionally, calling select_action() with force_reload set will set force_udev_reload. This isn't necessary for any of the reload_map() callers, and will just cause udev to do extra work. I did set force_udev_reload in cli_reload(), so that it works like calling "multipath -r", which does force udev to rescan the device. Signed-off-by: Benjamin Marzinski Reviewed-by: Martin Wilck --- multipathd/cli_handlers.c | 1 + multipathd/main.c | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/multipathd/cli_handlers.c b/multipathd/cli_handlers.c index ec330d81..0849fe51 100644 --- a/multipathd/cli_handlers.c +++ b/multipathd/cli_handlers.c @@ -818,6 +818,7 @@ cli_reload(void *v, struct strbuf *reply, void *data) return 1; } + mpp->force_udev_reload = 1; return reload_and_sync_map(mpp, vecs); } diff --git a/multipathd/main.c b/multipathd/main.c index c1ae44f2..c0cf0d06 100644 --- a/multipathd/main.c +++ b/multipathd/main.c @@ -2273,7 +2273,7 @@ static int reload_map(struct vectors *vecs, struct multipath *mpp, condlog(0, "%s: failed to setup map", mpp->alias); return 1; } - select_action(mpp, vecs->mpvec, 1); + mpp->action = ACT_RELOAD; r = domap(mpp, params, is_daemon); if (r == DOMAP_FAIL || r == DOMAP_RETRY) {