Received: by 10.213.65.68 with SMTP id h4csp2121066imn; Sun, 8 Apr 2018 20:13:29 -0700 (PDT) X-Google-Smtp-Source: AIpwx4/9Ct85J+GXz2tD0MPGLcMkYEF/6V8LYs11sJRW5a/AbWhtCbz9y+CIJg908Sm4vO5GDXrx X-Received: by 10.99.64.65 with SMTP id n62mr23604086pga.259.1523243609305; Sun, 08 Apr 2018 20:13:29 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1523243609; cv=none; d=google.com; s=arc-20160816; b=Wi4ykN5GBHrsVsxD0HUAxIVXFrJ0rCktonD8DQ8O/0P9cUd82DOpKD85CnXhbS19O9 7mY3Obifh7YTZIGfjk1FDTpMMdzXVx2jvo03ybL2JLfM5ufOHpjBEwytddfElAiFvjoo eUp43LOWlHfcb2cr/PpNr06qXTkq3I9OELi/22b6WLWjQ+yuaP2DZ0Mbb0im0mUVrvxA 2DKwkvlMeSbUspXqwxCpgo+Wtdp3gttYTvnygx0NVPmdoLjIWV1hGkbBckSJ8Vpr8BwP rFYJz7Abzmm0ju0mOYvduONsI4D6CNZ5pT+372iWyylm/5DXnyeSAN/QbS68Q7wYDW4O utoA== 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=vQUdF/d9yYVUGOxn5m97Mojm2aReJIHW1W8mA5cAw50=; b=vQ8ZoVXWPgoWxJBZTSPgaJHmWglqNk2rwQVAExTstcOXQJuVfCXDXOQiQQ4yK0wVOH pWBqJvQkIaIq2EGXGb1KDyPZJsXRfzMUyToedql7l08rKSMJvOEUAmPLf1jBQazeeSuO 0XXIktn39EHLr4Xm/p35UFzpscB1TOUOPfaOqVBC4YRc3d+JEDenBP1iXKsopKa4il4a nyAM1AduKaay7PvySNo/69gjwHi1oUDMaEGv0dsPUG1ZbpgbJCRuQ/jN4ggjGnz4R4US KMh0MLYKFlb8IH3VEb79SZ5xLiAmVKZm6NP84fv+mctZhZPuddmnVTMpE/1FhMowdPNQ yJAw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@microsoft.com header.s=selector1 header.b=Q7zNe3me; 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 m2si10279972pgq.179.2018.04.08.20.12.52; Sun, 08 Apr 2018 20:13:29 -0700 (PDT) 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=Q7zNe3me; 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 S1756307AbeDICW7 (ORCPT + 98 others); Sun, 8 Apr 2018 22:22:59 -0400 Received: from mail-by2nam03on0107.outbound.protection.outlook.com ([104.47.42.107]:6816 "EHLO NAM03-BY2-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1756022AbeDIA3j (ORCPT ); Sun, 8 Apr 2018 20:29:39 -0400 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=vQUdF/d9yYVUGOxn5m97Mojm2aReJIHW1W8mA5cAw50=; b=Q7zNe3me3IqjApFXBDA878OGR50yvCnXoxPyCcUD+4JxlG5HuFo+CN8w5R/lByOAHllD0kC1n0CRjOIt0Qu0LD/8Ej+iYqvnrJcXSLCh5Q/qsFeqfZBDjg6faSEyuSNw7EdtT3/DtgegEbR1et26CoHoFgRSFqcm7OcDmr54O9U= Received: from DM5PR2101MB1032.namprd21.prod.outlook.com (52.132.128.13) by DM5PR2101MB0967.namprd21.prod.outlook.com (52.132.133.25) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.696.0; Mon, 9 Apr 2018 00:29:35 +0000 Received: from DM5PR2101MB1032.namprd21.prod.outlook.com ([fe80::8109:aef0:a777:7059]) by DM5PR2101MB1032.namprd21.prod.outlook.com ([fe80::8109:aef0:a777:7059%2]) with mapi id 15.20.0696.003; Mon, 9 Apr 2018 00:29:35 +0000 From: Sasha Levin To: "stable@vger.kernel.org" , "linux-kernel@vger.kernel.org" CC: Edward Cree , "David S . Miller" , Sasha Levin Subject: [PATCH AUTOSEL for 4.9 109/293] sfc: remove duplicate up_write on VF filter_sem Thread-Topic: [PATCH AUTOSEL for 4.9 109/293] sfc: remove duplicate up_write on VF filter_sem Thread-Index: AQHTz5kZtXYNtbTly0S7JFi/e5t7lQ== Date: Mon, 9 Apr 2018 00:24:18 +0000 Message-ID: <20180409002239.163177-109-alexander.levin@microsoft.com> References: <20180409002239.163177-1-alexander.levin@microsoft.com> In-Reply-To: <20180409002239.163177-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;DM5PR2101MB0967;7:jF8ZpMN1TY81Pb/0bPaWYb8YBBIQaq6NDow1Bk/iW44cG+VsZMHxV6klqqNcMBItnPDG183ylzKePvbtbce0PTn1f4i0P5vwqszLylCil+65bAUfSA43CjrfcZBVUNXShjJyft8zVtFyGHWd0vdqKnOODF1/YjC/HhguJTTtEuGMSLbTNZTWXa4o2LL+QuqH18iIscNmS+wsmWq72sLqUvxzlTSyP8OSPo/JBzky7tutErEDvZvBttcsoJcYCVSS;20:OTHuqjbgv0+O0m7YLQUKGgQMMJLaeqmclWCv1CsDF6TTHJsQYjDs3dV6npc/SoYD4xyjgNkFMJ/DvwYGzA95xSe9rPcx8/kxKy4A0jusPnQHsLqQ1wcCbbkqhUWwiCgCIZhiTziug0iq96RBhjGfg/ofGlog/fKjadBKlvJhArM= x-ms-office365-filtering-ht: Tenant X-MS-Office365-Filtering-Correlation-Id: e59241ce-3a3b-43c1-abfe-08d59db0f8d1 x-microsoft-antispam: UriScan:;BCL:0;PCL:0;RULEID:(7020095)(4652020)(48565401081)(5600026)(4604075)(3008032)(4534165)(4627221)(201703031133081)(201702281549075)(2017052603328)(7193020);SRVR:DM5PR2101MB0967; x-ms-traffictypediagnostic: DM5PR2101MB0967: authentication-results: spf=none (sender IP is ) smtp.mailfrom=Alexander.Levin@microsoft.com; x-microsoft-antispam-prvs: x-exchange-antispam-report-test: UriScan:(28532068793085)(89211679590171); x-exchange-antispam-report-cfa-test: BCL:0;PCL:0;RULEID:(8211001083)(61425038)(6040522)(2401047)(5005006)(8121501046)(93006095)(93001095)(3231221)(944501327)(52105095)(3002001)(10201501046)(6055026)(61426038)(61427038)(6041310)(20161123558120)(20161123562045)(20161123560045)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123564045)(6072148)(201708071742011);SRVR:DM5PR2101MB0967;BCL:0;PCL:0;RULEID:;SRVR:DM5PR2101MB0967; x-forefront-prvs: 0637FCE711 x-forefront-antispam-report: SFV:NSPM;SFS:(10019020)(396003)(39860400002)(366004)(376002)(39380400002)(346002)(199004)(189003)(6506007)(486006)(575784001)(86362001)(14454004)(59450400001)(68736007)(102836004)(99286004)(26005)(3846002)(6116002)(186003)(476003)(2616005)(1076002)(3280700002)(86612001)(72206003)(4326008)(446003)(54906003)(76176011)(11346002)(2906002)(22452003)(3660700001)(110136005)(97736004)(316002)(6666003)(5660300001)(478600001)(8676002)(6512007)(8936002)(107886003)(6486002)(53936002)(81166006)(36756003)(81156014)(10290500003)(6436002)(10090500001)(25786009)(66066001)(106356001)(305945005)(7736002)(2501003)(5250100002)(105586002)(2900100001)(22906009)(217873001);DIR:OUT;SFP:1102;SCL:1;SRVR:DM5PR2101MB0967;H:DM5PR2101MB1032.namprd21.prod.outlook.com;FPR:;SPF:None;LANG:en;PTR:InfoNoRecords;A:1;MX:1; received-spf: None (protection.outlook.com: microsoft.com does not designate permitted sender hosts) x-microsoft-antispam-message-info: 5jSp8DE0L62aB6Az2l9qLjNoO+8mPOaaI2xKorevaBbfKfDhMpd5uVs11Q/JVM4tr6EC5mbl/+aXafBSDF5CVcmZZ2i09G9r6UjkGmZx0zqSB45UzY8L6Zi4koGfqTf9gqHgqDfixjetB+n5+jw0U6j/w2J7TuFB4nzUaHCUVQE2fGNIbdb8221PQPB81du80PHUBGLcfD8snX8Ci1uboJWmBR2lzeN1gWzNJuDzzib6e+V+9BipyDCS1FlqN9SlKDvTXLifJbx/BD5EKHxAePwOQnYd1IcYCoSKZQvTXwb3YkyfdZa+54wijVfmx4jNzlnAdLFVicGsflmVjmRY2xLzzJ6gtsXJ0doKpYQRIKRRZ+asydTecqp6hlRIb1B0d2xqd908LHjtzDIPPicAv34eZKLxDRT4lZPHvEUmCBY= 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: e59241ce-3a3b-43c1-abfe-08d59db0f8d1 X-MS-Exchange-CrossTenant-originalarrivaltime: 09 Apr 2018 00:24:18.4719 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 72f988bf-86f1-41af-91ab-2d7cd011db47 X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM5PR2101MB0967 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Edward Cree [ Upstream commit 57f0c9cf58ff7fe479137ab847a886d0eed3ad1d ] Somehow two copies of the line 'up_write(&vf->efx->filter_sem);' got into efx_ef10_sriov_set_vf_vlan(). This would put the mutex in a bad state and cause all subsequent down attempts to hang. Fixes: 671b53eec2ed ("sfc: Ensure down_write(&filter_sem) and up_write() ar= e matched before calling efx_net_open()") Signed-off-by: Edward Cree Signed-off-by: David S. Miller Signed-off-by: Sasha Levin --- drivers/net/ethernet/sfc/ef10_sriov.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/drivers/net/ethernet/sfc/ef10_sriov.c b/drivers/net/ethernet/s= fc/ef10_sriov.c index a949b9d27329..d87d89d3c956 100644 --- a/drivers/net/ethernet/sfc/ef10_sriov.c +++ b/drivers/net/ethernet/sfc/ef10_sriov.c @@ -660,8 +660,6 @@ restore_filters: up_write(&vf->efx->filter_sem); mutex_unlock(&vf->efx->mac_lock); =20 - up_write(&vf->efx->filter_sem); - rc2 =3D efx_net_open(vf->efx->net_dev); if (rc2) goto reset_nic; --=20 2.15.1