Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-7.8 required=3.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,MENTIONS_GIT_HOSTING, PDS_BAD_THREAD_QP_64,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id A9A2AC433E0 for ; Wed, 10 Feb 2021 19:57:31 +0000 (UTC) Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [216.205.24.124]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id DA51064EE8 for ; Wed, 10 Feb 2021 19:57:30 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org DA51064EE8 Authentication-Results: mail.kernel.org; dmarc=fail (p=quarantine dis=none) header.from=suse.com Authentication-Results: mail.kernel.org; spf=tempfail smtp.mailfrom=dm-devel-bounces@redhat.com Received: from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com [209.132.183.4]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-11-ZnsReLBIN7aTPRnDENkk3Q-1; Wed, 10 Feb 2021 14:57:27 -0500 X-MC-Unique: ZnsReLBIN7aTPRnDENkk3Q-1 Received: from smtp.corp.redhat.com (int-mx05.intmail.prod.int.phx2.redhat.com [10.5.11.15]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id E608DCE642; Wed, 10 Feb 2021 19:57:21 +0000 (UTC) Received: from colo-mx.corp.redhat.com (colo-mx01.intmail.prod.int.phx2.redhat.com [10.5.11.20]) by smtp.corp.redhat.com (Postfix) with ESMTPS id C4FD862467; Wed, 10 Feb 2021 19:57:21 +0000 (UTC) Received: from lists01.pubmisc.prod.ext.phx2.redhat.com (lists01.pubmisc.prod.ext.phx2.redhat.com [10.5.19.33]) by colo-mx.corp.redhat.com (Postfix) with ESMTP id 610D918095C9; Wed, 10 Feb 2021 19:57:21 +0000 (UTC) Received: from smtp.corp.redhat.com (int-mx05.intmail.prod.int.rdu2.redhat.com [10.11.54.5]) by lists01.pubmisc.prod.ext.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id 11AJvI1f008252 for ; Wed, 10 Feb 2021 14:57:18 -0500 Received: by smtp.corp.redhat.com (Postfix) id 6FE2CE2A65; Wed, 10 Feb 2021 19:57:18 +0000 (UTC) Received: from mimecast-mx02.redhat.com (mimecast05.extmail.prod.ext.rdu2.redhat.com [10.11.55.21]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 6950ADEE7C for ; Wed, 10 Feb 2021 19:57:16 +0000 (UTC) Received: from us-smtp-1.mimecast.com (us-smtp-delivery-1.mimecast.com [205.139.110.120]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-SHA384 (256/256 bits)) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id 3866D8032E3 for ; Wed, 10 Feb 2021 19:57:16 +0000 (UTC) Received: from de-smtp-delivery-102.mimecast.com (de-smtp-delivery-102.mimecast.com [194.104.109.102]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-148-2e1T0O1lNeWBoXjWgRTi7Q-1; Wed, 10 Feb 2021 14:57:13 -0500 X-MC-Unique: 2e1T0O1lNeWBoXjWgRTi7Q-1 Received: from EUR03-AM5-obe.outbound.protection.outlook.com (mail-am5eur03lp2057.outbound.protection.outlook.com [104.47.8.57]) (Using TLS) by relay.mimecast.com with ESMTP id de-mta-31-ijOELds3PAerSfL8KcLGjg-1; Wed, 10 Feb 2021 20:57:10 +0100 X-MC-Unique: ijOELds3PAerSfL8KcLGjg-1 Received: from DB8PR04MB6555.eurprd04.prod.outlook.com (2603:10a6:10:103::20) by DB7PR04MB4924.eurprd04.prod.outlook.com (2603:10a6:10:14::33) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3846.26; Wed, 10 Feb 2021 19:57:08 +0000 Received: from DB8PR04MB6555.eurprd04.prod.outlook.com ([fe80::69bd:c9ff:f910:faeb]) by DB8PR04MB6555.eurprd04.prod.outlook.com ([fe80::69bd:c9ff:f910:faeb%7]) with mapi id 15.20.3825.030; Wed, 10 Feb 2021 19:57:08 +0000 From: Martin Wilck To: "bblock@linux.ibm.com" Thread-Topic: [dm-devel] [PATCH 2/2] multipathd: add recheck_wwid_time option to verify the path wwid Thread-Index: AQHW/qMuQs93dFGIW0CwQCKCag2SdapQZg8AgAFMbICAAB4QgA== Date: Wed, 10 Feb 2021 19:57:08 +0000 Message-ID: References: <1612847967-8813-1-git-send-email-bmarzins@redhat.com> <1612847967-8813-3-git-send-email-bmarzins@redhat.com> In-Reply-To: Accept-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: user-agent: Evolution 3.38.2 x-originating-ip: [84.58.19.219] x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: 9714758a-d602-4383-4d12-08d8cdfe0c6c x-ms-traffictypediagnostic: DB7PR04MB4924: x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:10000 x-ms-exchange-senderadcheck: 1 x-microsoft-antispam: BCL:0 x-microsoft-antispam-message-info: V6biFF0UmDYTzwMNX5BphI+bA4t2CSMkNaD+b3zNETNpH5Qc2pEiJKTP7NyefOaPY0lATDQ/98rAisogi6NrgJvwRJrY9PcdA3dMDEtF+wdv8b2Cd1KGfLfB8DSCt+sBjFLRx5/6dvcQ9ltTQJs2bkMGHFF+47GuiR95nUE/ACwI1expqNXxIDA22bsSkeW5ErOdi+QI57UjTgJbeTbcwJlXEy4ITK19avGQJMkzyuyHEhzpb5/Ghmv/pGsZFdfiwdebJ13Y4K3N0lAN9altmzSdo0E5JTRDvPq/kFxfD7mKgXnlkFZd2W6cyIdp1TUQZ9XzTOpk8rdxpAKiVBg4A2cwp71JgvD+2TwjclsvcLshQ6TbjBMSNfQaPm1N9UjFDjBANLe6mrFFjTSk6fqVtfmCP5Z0115BwcTPG1qrs4fBvkLiSb3uiV8oK3psmFx5h1hGJ3qNdUnjaPUIIgsIcB5bbyU3wFUw+1hJlwF3yyb/i4M6mycPdCSuotRpZBK7pGqwCvxJ/jR/c6LfmpTU1GhY+v1nfx9DOOTgUbX4ZOCOemLM0ZX7MFEpk7VE9Hj46tM6kjENXW83AnmSPmKfU28eY1zfBOMwif4jei4SY9I= x-forefront-antispam-report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:DB8PR04MB6555.eurprd04.prod.outlook.com; PTR:; CAT:NONE; SFS:(346002)(39860400002)(376002)(136003)(366004)(396003)(26005)(186003)(54906003)(5660300002)(86362001)(6486002)(4326008)(478600001)(44832011)(6916009)(6506007)(2616005)(316002)(966005)(8936002)(4744005)(8676002)(83380400001)(66476007)(66446008)(66556008)(64756008)(66946007)(91956017)(76116006)(6512007)(36756003)(71200400001)(2906002)(66574015); DIR:OUT; SFP:1101 x-ms-exchange-antispam-messagedata: =?iso-8859-15?Q?8UOSMR1Wge/s5d49C4ruUr0sq3S+qq/8UVqazb4ExCkuSWJF3e1yMmvqP?= =?iso-8859-15?Q?6+Zc8LYl2wYQrrLzBfIT/t4vnaBBGyTN9jlt5f40jQGhotXPJBGA84k6h?= =?iso-8859-15?Q?/YxInYgEV2iWQS0s1DWxoIkXCRTeWg9vT3RAwhmK5/tNbIwwJ8g+q186W?= =?iso-8859-15?Q?KnbiAi8djtwzCSgkHUO4PY5MNOSJLv8gCPW2y+3CmltHIHEGRWbhJmI6x?= =?iso-8859-15?Q?O1ghtVvhRO7DHZg3r8QH5zT/LXpxNYWqSYBINY/0QIRZCanIWZRfaD9Yw?= =?i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ul20Z3fEL0e8AHKaPmY?= =?iso-8859-15?Q?JJcTO+7HjvqG8aDFiba0pB3+/Esd3bcKQkt3gCN5Phv3pLgEOSwNFd2pD?= =?iso-8859-15?Q?JSbXCmLFSVkvkroqMkohlx5cKbwDmMk546FdAyzvGs/cie5Lw8m8zF/WM?= =?iso-8859-15?Q?QIEaZ6qrjsgexMx4xViuQF416Ne6Q0hjRzZ460k+/+4QQAwNR3ovu74r0?= =?iso-8859-15?Q?2DWrSifhS/Pcc8hclA+E6innkJG5CQ5sV?= x-ms-exchange-transport-forked: True MIME-Version: 1.0 X-OriginatorOrg: suse.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: DB8PR04MB6555.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: 9714758a-d602-4383-4d12-08d8cdfe0c6c X-MS-Exchange-CrossTenant-originalarrivaltime: 10 Feb 2021 19:57:08.5607 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: f7a17af6-1c5c-4a36-aa8b-f5be247aa4ba X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: 3vtWzCTOJWa2O7j2co0see1/Ad4HwRStM6mLq06txGoqMhtqcRSpq1UJEvCuD7EMnReqp+DP7xete4oUGcR32A== X-MS-Exchange-Transport-CrossTenantHeadersStamped: DB7PR04MB4924 X-Mimecast-Impersonation-Protect: Policy=CLT - Impersonation Protection Definition; Similar Internal Domain=false; Similar Monitored External Domain=false; Custom External Domain=false; Mimecast External Domain=false; Newly Observed Domain=false; Internal User Name=false; Custom Display Name List=false; Reply-to Address Mismatch=false; Targeted Threat Dictionary=false; Mimecast Threat Dictionary=false; Custom Threat Dictionary=false X-Scanned-By: MIMEDefang 2.79 on 10.11.54.5 X-MIME-Autoconverted: from quoted-printable to 8bit by lists01.pubmisc.prod.ext.phx2.redhat.com id 11AJvI1f008252 X-loop: dm-devel@redhat.com Cc: "dm-devel@redhat.com" , "wucy11@chinatelecom.cn" Subject: Re: [dm-devel] [PATCH 2/2] multipathd: add recheck_wwid_time option to verify the path wwid X-BeenThere: dm-devel@redhat.com X-Mailman-Version: 2.1.12 Precedence: junk List-Id: device-mapper development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: dm-devel-bounces@redhat.com Errors-To: dm-devel-bounces@redhat.com X-Scanned-By: MIMEDefang 2.79 on 10.5.11.15 Authentication-Results: relay.mimecast.com; auth=pass smtp.auth=CUSA124A263 smtp.mailfrom=dm-devel-bounces@redhat.com X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Language: en-US Content-ID: <8E6776222C3B1348905A570FB0CD6AAF@eurprd04.prod.outlook.com> Content-Type: text/plain; charset="iso-8859-15" Content-Transfer-Encoding: quoted-printable On Wed, 2021-02-10 at 19:09 +0100, Benjamin Block wrote: >=20 > Yeah, just for reference, I saw this happening in practice when > something with the LU mapping changed on IBM storage - IIRC I saw it > with capacity changes. You end up in this code in the kernel: > =A0=A0=A0=20 > https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/tree/d= rivers/scsi/scsi_error.c?id=3D92bf22614b21a2706f4993b278017e437f7785b3#n416 >=20 > And from there you ought to get an uevent for the sdev. >=20 > The WWID in sysfs might still be wrong though AFAIK. The kernel seems > to > ignore the UA after it delivered the uevent. Right. We could trigger a device rescan if such an event was received. Could be done from udev rules, or even from multipathd itself. Thanks, Martin --=20 Dr. Martin Wilck , Tel.=A0+49 (0)911 74053 2107 SUSE Software Solutions Germany GmbH HRB 36809, AG N=FCrnberg GF: Felix Imend=F6rffer -- dm-devel mailing list dm-devel@redhat.com https://www.redhat.com/mailman/listinfo/dm-devel