Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=74.125.82.181 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796070370; b=QjiV/Rt52KO0aYOSTevevtffvhvTkQDz3h32t7K+xFTHgAKPTkn4gm/ZyCXU8HSwbhqR hJhnkJ9rzhpPP9ENX3R5FXJ1UE8yNMlIQjUWttLutQhqHRyi1pdvZvHrPm8WNFLIs/8W2 tYYu2NTnvKXI9nWcA8J6nFeZwkO1zyHYQs8RYZqBRkhsOi7XwcE19aIrm8Lw+739tsnKm KAX4svUr7rcuNHj/DNsVNmj3JS5SPeWonV9JyRP3S1L1DrTPyDPnqeQuxlc+kTl1d5K1N Cs7CTghloKhuqfDUR3fvM6vfCIawAApuep/oV3N7sH6Ar62W34s2V17LvnekEeWZ6rw== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796070370; h=DMARC-Filter:Received:DKIM-Signature:X-Google-DKIM-Signature: X-Gm-Message-State:X-Gm-Gg:X-Received:Received:From:To:Cc:Subject: Date:Message-ID:X-Mailer:MIME-Version:Content-Transfer-Encoding; bh=+lCHWieErSVBIq1EnvyCn6N4Y+2mO1YA6VQfnbqJw4I=; b=ORv6wxsnqbE1K9brLv8VLZvDn8WqWilP6dBzHlEo8K6lS/ZzbsMsbn29Rg1b4SrmtcUj gHaYpfguArxLiLzOykGiu3mGwpqG+B2HnFOii/Zqs1OTCNnjYby7ZNhS7q/4PLKdZPlKS XEMmLwHJR1DTTYMVQP3FYXfhpJOSg6eVqnxAX8iopIVbreyhSijdACbj9vVJer/IMI/yy eSywVFvO+yJxN04bf3MV1XFShCM4pNjHQPtZb/15Kqi+pI/tegyEX0GYlC4I3BdZQ3stV oNsWzg+fnUaXuUhnY+5z1mga5+7Vokbvvgy6wedjMAiKE3wzPLlY7JT086iU3wh6/wA== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass header.from=purestorage.com; spf=pass smtp.mailfrom=purestorage.com; dkim=pass header.d=purestorage.com header.i=@purestorage.com header.a=rsa-sha256 header.s=google2022 header.b=TRbGE675; arc=none smtp.remote-ip=74.125.82.181 Received: from mail-dy1-f181.google.com (mail-dy1-f181.google.com [74.125.82.181]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 11D8F606A320 for ; Mon, 30 Nov 2026 20:26:08 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 11D8F606A320 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=purestorage.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=purestorage.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key, unprotected) header.d=purestorage.com header.i=@purestorage.com header.a=rsa-sha256 header.s=google2022 header.b=TRbGE675 Received: by mail-dy1-f181.google.com with SMTP id 5a478bee46e88-33bf40b0c8bso4473961eec.0 for ; Mon, 30 Nov 2026 12:26:08 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=purestorage.com; s=google2022; t=1796070368; x=1796675168; darn=lists.linux.dev; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to:content-type; bh=+lCHWieErSVBIq1EnvyCn6N4Y+2mO1YA6VQfnbqJw4I=; b=TRbGE675HHa26tG+RvjhrfkOQVruC4NFl6c3GVowkwqLEJ8sFmjhtCegKP1w5KYKcq fCb9QTfF+ZVgUqnXXWALRYuKdCHe1cI/eAv/P8ylq6hX3uPwwANEkD7xuinMUcO9WCxs LhLXxi1Iq2eQfgOiVeoWF3ij43qKgqHBNCt7MiLYgrGrNnXGs804XMn145yrOL/qCAUK TVJytCq8QVERKYTQCQlzWAePaXezhrJeXdU5TsKDShY1TaszZ2CqXUsk61SyX77vSgNc FykOG1RAK5I8TYBampK+VhcnHrNPkF0SiUhYKrFvpVUdgaZWJxF/4c42kQ81de5BYgJL GERg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1796070368; x=1796675168; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-gg:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to:content-type; bh=+lCHWieErSVBIq1EnvyCn6N4Y+2mO1YA6VQfnbqJw4I=; b=R/emAXmZN36P05mdbPxx+urlvXIlGrGwPGhq4CnRTvcMDR0uwReDELyxKoYlgVvKR5 8u0+4YF5fpaWH+TpdnF5A9AWNvWEUZo2fk/WNpB9lbKL2cUeLikGIU+zRsCTpFsE6hdh FSA1tiV8ufSTlRN/CIlxfzKqRDJWC9ZoaulXMhrplJ2LczkfVQ/BomZTdN00VmyZS0dZ hb+JMbpNRilLV/YTZwOPZyDcwHuapxesDdb8pi/F73TzW8U6KTiI0WOBy9BI9pCzfhJ6 91L6YaVu7EVlqdXEMVzVUwCsOiezAfLKDtKGUIYHsFwRQ+6PIoP0wLnVGz67nxqaXFAM ixTA== X-Gm-Message-State: APuU4Z+zjV6gMwzuh2DMV3s347297ug2iRiNhfKOaHSMt67gz9nbAP/1 4PxOU/V7kGF59ZVxthA4U81xlhOLy7cJnSGc+aqfaiiX+im0DN3kryPc4vF0ilj/B7SoJmMuJ4H bciKKUFMIJruJ3Z7AIoV03+qyzO2JM7oSmZKSUZJOaaNcs9UhdSaKWYo+GuSkDdFo+Ldn02e9x/ IjEfCLqV36UyvAO8Z3TlYDhQv05LAb0bg4B5Tb8l9G9KiyzIM= X-Gm-Gg: AZFdTZdm6o2H/MgeguyVZuft7Xqwzmo3eCRKchM1IF6fXgEGRmCwAPa1UZz2DNYzC4r pcksRiVmGHxPvkRp7zqBXegrL920mQ2Zqj8lY1PWKYg5J3rVmsdK7hsWhhHSzcpRhsiMi3qN8vB kLPBV0R+tR0UAFR2baf9Z0la+TaOE8A46gVutXS3/4xCYBBTL5wRsm37v1ZsFo/rOzTZMoSHduQ 0jRCQTfOlkvX7Dy/QGmCfuXn3Qgb3Uh9+SMt8mtfKR8kmv9CckGcPw2EbY/k+2dCLEC2T+184C8 kgvnJ0oRLH8fZVNh310RxfQFVdJgdVooNSMWO3ErQO2MsbedlVIHnB8mi+YoHLpq5yCpS0dh32G yjRWo/JR+2/3zKzklBqwwEQYCCrEOjA8LTAyWiYSe8llQlnluE9llFsHPep1X0G9XMtCzYoGwqm sRPihPvjIf3uTZJKnT69DaUSTQ+xc8hgmg2QZ3JNHQw3KVC2EIvyabT/N7eRQYs1RxIGMFfj1Nz hOy9ICqXsJ/CpFJglmtvLXDfUVnpcswf72rlgkb1tks6C2ZlY5UlR2C/kKL/phQBu15T4ryxaLu g9c1PmP2wyzFVcFKj5fVWmD6zWaVIP/2uvQ35tQeqNPinxv7CVdT7LalHuyR6IQFh4VvHB+wX13 4H/O1+W/8rNnFXCOTJNPaDtZSpqaZw17IMHT2wHVGTVxJm1wLraiwURp//uaP10SqDwqGVSGwRj aMcafj85+WBBXa13rdP8l4IIn60g== X-Received: by 2002:a05:7301:160e:b0:384:c1bd:aa5d with SMTP id 5a478bee46e88-386a87f00a6mr27710126eec.30.1796070367749; Mon, 30 Nov 2026 12:26:07 -0800 (PST) Received: from brian--MacBookPro18.purestorage.com ([170.85.204.103]) by smtp.gmail.com with ESMTPSA id 5a478bee46e88-38707b612cbsm31332814eec.4.2026.11.30.12.26.06 (version=TLS1_3 cipher=TLS_CHACHA20_POLY1305_SHA256 bits=256/256); Mon, 30 Nov 2026 12:26:07 -0800 (PST) From: Brian Bunker To: dm-devel@lists.linux.dev Cc: Benjamin Marzinski , Martin Wilck , Christophe Varoqui Subject: [PATCH v5 0/1] multipathd: recheck WWIDs of re-added paths with the device Date: Mon, 30 Nov 2026 12:25:57 -0800 Message-ID: <20261130202558.28849-1-brian@purestorage.com> X-Mailer: git-send-email 2.56.0 X-Mailing-List: dm-devel@lists.linux.dev List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 Content-Transfer-Encoding: 8bit During an array controller failover on an iSCSI host, multipathd briefly put a path to one LUN into the map of another LUN, and I/O meant for the first LUN landed on the second. See the v1 cover letter for the full sequence. In short: a change uevent reported the wrong WWID for one path. The removal of the path from its map then blocked for 4.4 seconds while the map was suspended, and the re-add used that same, by then 4.4 second old, uevent to put the path into the wrong map. The next INQUIRY on the path, 140 ms after the re-add, returned the correct WWID. Changes in v5, after Martin's and Ben's review of v4: - The check only runs for paths that are up, as Ben suggested. A path that isn't up is checked by recheck_wwid when it comes up, so this is no riskier than the existing recheck_wwid checks. - PATH_ADD_REINIT is passed only when udev reported a changed WWID. The re-add after a udev retrigger (INIT_REQUESTED_UDEV) takes the normal path, so the fresh udev data is trusted and a persistently wrong ID_SERIAL isn't checked over and over. - If the device doesn't confirm the new WWID, or its WWID can't be read, the path is left out. v4 kept the path when the SG_IO read failed. check_path_wwid() now reports a mismatch and a failure separately; check_path_wwid_change() still returns true only on a mismatch, so its other callers behave as before. - When the path is left out, pp->tick is set to retrigger_delay, as pathinfo() does, and the message is logged at level 2 instead of 0. - multipath.conf(5) now says that the check is for up paths and that an unreadable WWID counts as unconfirmed. Left for follow-ups, as discussed in the v4 thread: resetting pp->retriggers once a path has a confirmed WWID, rescanning the path (possibly asynchronously) when its WWID changed, and a mode in which multipathd never trusts udev for the WWID. We've seen the problem once and haven't reproduced it. We have been running a v1-style patch on our test initiators since then without a recurrence, which at this rate doesn't prove much either way. Brian Bunker (1): multipathd: recheck WWIDs of re-added paths with the device multipath/multipath.conf.5.in | 8 ++-- multipathd/cli_handlers.c | 2 +- multipathd/main.c | 74 +++++++++++++++++++++++++++-------- multipathd/main.h | 13 +++++- 4 files changed, 75 insertions(+), 22 deletions(-) -- 2.56.0