Received: by 10.223.176.5 with SMTP id f5csp902830wra; Sat, 3 Feb 2018 13:01:11 -0800 (PST) X-Google-Smtp-Source: AH8x225JefF765PxHyb0pHnsWj5UylYsbrnfAsb1hcbrl9NF+sc0dYD3VH5eExv94pP1J7AxDJFI X-Received: by 10.98.153.197 with SMTP id t66mr3885786pfk.142.1517691671428; Sat, 03 Feb 2018 13:01:11 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1517691671; cv=none; d=google.com; s=arc-20160816; b=diam5PnQJoa5GofuURqgGUhzn/OkOA04qVCGM8fzic7CpjukkWMnHAdGgnQ64VLd2i dUX8L6+yLQbUg/yLbEh40vJcREK38zRu548Cp05WcpVHvJd0fDj8+KTCoTr2LKX3iSB5 7lqGyE2MQhhHOBtNgrhqWUgjmYwpXO7+9oisyXVko5Apas24TJfIZ5MRlJ6VsLs+WM49 zCDvNnw2Jv9XXhyPumSHqAOS5Dx401wws+Rkq8J72VnUfic5EnFxwEZFCaaGF8sDdfi6 jhUqGvejzobrymKG3hKB89zYsvxNCbGXc3uOlv+wFeT7aedOC3eCmAAxFHuHHibOVqth UE7A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:content-transfer-encoding :spamdiagnosticmetadata:spamdiagnosticoutput:content-language :accept-language:in-reply-to:references:message-id:date:thread-index :thread-topic:subject:cc:to:from:dkim-signature :arc-authentication-results; bh=GDb5b00F5bT5+CkSoUuKYrUQ8XITdpsabZTBN/roOTI=; b=YurNdTIIw+FZjkdXFP+dSvNEcGjIWDLDbY/aeo5UAdHoMmhYyxuP4BiqLT6DT3ytZo A6Agll8lo4ERtetEY4tvLLHIs2KFnUQHkv1r0m3TaPu62Ra2JtrvGs+rgnP8bZkOP24r 5CI2RfriU5txNVmt3vVTmaW5XlGa2RyMzLHE7X7D0jdIj3T8uARPs5bWZ4s60Q/J640U UnM1Wga+x5BC5zPz4B4xXh1IVwcGprpl4ioCZqgUqgLmA3f3AbSkTQOMpKNLxFj9QSV4 WM3BdgJFDwsVZAormiTe0CQxmpayi1o76kYY1LJT7lbFegfWvoDVDqe5epQJli6zn3kf CGZg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@microsoft.com header.s=selector1 header.b=MHmYbwSw; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=microsoft.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id b2si1516593pgc.37.2018.02.03.13.00.55; Sat, 03 Feb 2018 13:01:11 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@microsoft.com header.s=selector1 header.b=MHmYbwSw; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=microsoft.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754306AbeBCSlW (ORCPT + 99 others); Sat, 3 Feb 2018 13:41:22 -0500 Received: from mail-by2nam03on0111.outbound.protection.outlook.com ([104.47.42.111]:44500 "EHLO NAM03-BY2-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1752755AbeBCSD3 (ORCPT ); Sat, 3 Feb 2018 13:03:29 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=GDb5b00F5bT5+CkSoUuKYrUQ8XITdpsabZTBN/roOTI=; b=MHmYbwSwx/xZcgvzWyvJHEi5JynuS5EXU5Y9Tng9azfnK/b4IYTDMK5nSxwhCb7avjNA16h8wvKYn4/Y+E3Dra2w0U/li/r40U0FYJnzwqZkqd6aL6T/5kwvT2adNlC6zpbVyOeAAQWMgRf5h931Yy7lpFLEqpNjfUJBB45uG3U= Received: from BL0PR2101MB1027.namprd21.prod.outlook.com (52.132.20.161) by BL0PR2101MB1105.namprd21.prod.outlook.com (52.132.24.27) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.485.5; Sat, 3 Feb 2018 18:02:06 +0000 Received: from BL0PR2101MB1027.namprd21.prod.outlook.com ([fe80::a8da:b5d9:d710:9bf9]) by BL0PR2101MB1027.namprd21.prod.outlook.com ([fe80::a8da:b5d9:d710:9bf9%3]) with mapi id 15.20.0485.006; Sat, 3 Feb 2018 18:02:06 +0000 From: Sasha Levin To: "linux-kernel@vger.kernel.org" , "stable@vger.kernel.org" CC: Stefan Haberland , Martin Schwidefsky , Sasha Levin Subject: [PATCH AUTOSEL for 4.14 069/110] s390/dasd: fix wrongly assigned configuration data Thread-Topic: [PATCH AUTOSEL for 4.14 069/110] s390/dasd: fix wrongly assigned configuration data Thread-Index: AQHTnRj76rRu8R4wOUeK38+r95miuQ== Date: Sat, 3 Feb 2018 18:01:14 +0000 Message-ID: <20180203180015.29073-69-alexander.levin@microsoft.com> References: <20180203180015.29073-1-alexander.levin@microsoft.com> In-Reply-To: <20180203180015.29073-1-alexander.levin@microsoft.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [52.168.54.252] x-ms-publictraffictype: Email x-microsoft-exchange-diagnostics: 1;BL0PR2101MB1105;7:20lZsMIoQMrXHJmh4g1cWRFOtTjv4MFVWoRPajp3o7IqDBkMy7Ic67sKX9Ias/KuWEcg4KrrVkXJ6s+NYV+AqjE3v9QciLQQ/5Q382i3deDRhjfl6/rBXRiEs2FXof9Uc+FEDoLcXji5BEfexlJ+HJdLOQhoSejPuZrhdd831VqofXDW6tDHuoww0zgsymUthurlDkwcR5VE85RLDQCPXitL9INBYKiCiqiz8raobGT0BUAqlEpXQ+E4tJSgdTjd x-ms-office365-filtering-ht: Tenant x-ms-office365-filtering-correlation-id: 7fdafa06-2ad4-4d95-93c7-08d56b303cae x-microsoft-antispam: UriScan:;BCL:0;PCL:0;RULEID:(7020095)(4652020)(48565401081)(4534165)(4627221)(201703031133081)(201702281549075)(5600026)(4604075)(3008032)(2017052603307)(7193020);SRVR:BL0PR2101MB1105; x-ms-traffictypediagnostic: BL0PR2101MB1105: x-microsoft-antispam-prvs: x-exchange-antispam-report-test: UriScan:(28532068793085)(89211679590171)(190383065149520)(104084551191319); x-exchange-antispam-report-cfa-test: BCL:0;PCL:0;RULEID:(61425038)(6040501)(2401047)(5005006)(8121501046)(3002001)(10201501046)(3231101)(2400082)(944501161)(93006095)(93001095)(6055026)(61426038)(61427038)(6041288)(20161123562045)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123560045)(20161123564045)(20161123558120)(6072148)(201708071742011);SRVR:BL0PR2101MB1105;BCL:0;PCL:0;RULEID:;SRVR:BL0PR2101MB1105; x-forefront-prvs: 05724A8921 x-forefront-antispam-report: SFV:NSPM;SFS:(10019020)(366004)(396003)(39380400002)(39860400002)(346002)(376002)(199004)(189003)(6346003)(97736004)(6512007)(7736002)(26005)(305945005)(102836004)(105586002)(68736007)(5250100002)(8936002)(59450400001)(6486002)(6436002)(106356001)(6506007)(81166006)(81156014)(2501003)(2906002)(10090500001)(99286004)(66066001)(54906003)(6116002)(3846002)(36756003)(1076002)(8676002)(110136005)(575784001)(107886003)(72206003)(2950100002)(478600001)(10290500003)(22452003)(6666003)(5660300001)(2900100001)(4326008)(25786009)(14454004)(316002)(86362001)(53936002)(3280700002)(186003)(3660700001)(76176011)(86612001)(22906009)(217873001);DIR:OUT;SFP:1102;SCL:1;SRVR:BL0PR2101MB1105;H:BL0PR2101MB1027.namprd21.prod.outlook.com;FPR:;SPF:None;PTR:InfoNoRecords;A:1;MX:1;LANG:en; received-spf: None (protection.outlook.com: microsoft.com does not designate permitted sender hosts) authentication-results: spf=none (sender IP is ) smtp.mailfrom=Alexander.Levin@microsoft.com; x-microsoft-antispam-message-info: Vu+NmNe14QGsZ9OmfNYSajoMKJK3RGrLJWL/pdJisICNTzdlQFXgdssZIIGvemC5aaK9z+QM4BZ+F1aPRqhMVA== spamdiagnosticoutput: 1:99 spamdiagnosticmetadata: NSPM Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-OriginatorOrg: microsoft.com X-MS-Exchange-CrossTenant-Network-Message-Id: 7fdafa06-2ad4-4d95-93c7-08d56b303cae X-MS-Exchange-CrossTenant-originalarrivaltime: 03 Feb 2018 18:01:14.9409 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 72f988bf-86f1-41af-91ab-2d7cd011db47 X-MS-Exchange-Transport-CrossTenantHeadersStamped: BL0PR2101MB1105 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Stefan Haberland [ Upstream commit 8a9bd4f8ebc6800bfc0596e28631ff6809a2f615 ] We store per path and per device configuration data to identify the path or device correctly. The per path configuration data might get mixed up if the original request gets into error recovery and is started with a random path mask. This would lead to a wrong identification of a path in case of a CUIR event for example. Fix by copying the path mask from the original request to the error recovery request in case it is a path verification request. Signed-off-by: Stefan Haberland Reviewed-by: Jan Hoeppner Signed-off-by: Martin Schwidefsky Signed-off-by: Sasha Levin --- drivers/s390/block/dasd_3990_erp.c | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/drivers/s390/block/dasd_3990_erp.c b/drivers/s390/block/dasd_3= 990_erp.c index c94b606e0df8..ee14d8e45c97 100644 --- a/drivers/s390/block/dasd_3990_erp.c +++ b/drivers/s390/block/dasd_3990_erp.c @@ -2803,6 +2803,16 @@ dasd_3990_erp_action(struct dasd_ccw_req * cqr) erp =3D dasd_3990_erp_handle_match_erp(cqr, erp); } =20 + + /* + * For path verification work we need to stick with the path that was + * originally chosen so that the per path configuration data is + * assigned correctly. + */ + if (test_bit(DASD_CQR_VERIFY_PATH, &erp->flags) && cqr->lpm) { + erp->lpm =3D cqr->lpm; + } + if (device->features & DASD_FEATURE_ERPLOG) { /* print current erp_chain */ dev_err(&device->cdev->dev, --=20 2.11.0