Received: by 10.192.165.148 with SMTP id m20csp1854624imm; Thu, 3 May 2018 06:32:56 -0700 (PDT) X-Google-Smtp-Source: AB8JxZoEhubw+1hihYpin1bVQBLERI76DiDBaOq3uXepAnQSMILgNYiIrUAC177h3iu0AZIf5SlX X-Received: by 2002:a17:902:8307:: with SMTP id bd7-v6mr23635474plb.234.1525354376444; Thu, 03 May 2018 06:32:56 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1525354376; cv=none; d=google.com; s=arc-20160816; b=lJlutRDMwh7CIhHpJCPEDD+Uqbna6Taz+GcGDep3vq2WDYh2oqtx07qpirZH5P5fyx M3OWV/ldSmbq36u99r0jWPUQ+NFZZReJSbIRT7UWnZEntBozzEtFmVrgqMCwe1CApkNw ddDm0J+nFRvhMqIOebECJuQVWgnJ2PFDSbBcVmfeMSYoJhscjWWx9SVds63CLRlktTK+ 6dspQP1JkBBdfoBCXzTWh1J0h/jyeiH/z3JUIuGUMsbADMISgm61PYoIUskDp1R9Slmy IZgh+rbCBYgnrulOMOXGaKBZWksdUn9ppRKeBDdBz2s1YFmHat+onMesdSSGL+MdQ/U1 eL/w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature :arc-authentication-results; bh=Fg0hRBw+fSisyUHOLItdmMO8JZaOyr1Kr1GA4yKPlcI=; b=p70WyP8Aluo/3ewDKpFPwSrj6UuA2Mlhy96uHFH4ILM2tqE5m2AGQC4Jt2pPn1o7ag 5tvz/Px6SmADcZb4Ae4zTvTKfHbFewvEwth/FuzCwVq8T5UNmikeLmcACOuUlc+kZHer 6QOAQo4V7WmkLctamyiPbjpjH8Kcym59aHU5C4N4F4Mspk7PKQE92NaG4ESqBMFygWtR 6ZsJz/NZgimt7cqcaTy3w4vyaD9t/ZTaipSHOmmfjM3MOYCCuT9kE8T53Dlf4WZbJGTo Bz/6yrs4MR6TWRIh7YLAnHPKj234nXkiO/a1AV5FKLXKUYzfX40iim3By2Z+qtrS+AZR sDJQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@oracle.com header.s=corp-2017-10-26 header.b=gI8NIfbm; 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=NONE sp=NONE dis=NONE) header.from=oracle.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id j65-v6si11424878pge.336.2018.05.03.06.32.42; Thu, 03 May 2018 06:32:56 -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=@oracle.com header.s=corp-2017-10-26 header.b=gI8NIfbm; 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=NONE sp=NONE dis=NONE) header.from=oracle.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751287AbeECNbM (ORCPT + 99 others); Thu, 3 May 2018 09:31:12 -0400 Received: from userp2130.oracle.com ([156.151.31.86]:37244 "EHLO userp2130.oracle.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750944AbeECNbK (ORCPT ); Thu, 3 May 2018 09:31:10 -0400 Received: from pps.filterd (userp2130.oracle.com [127.0.0.1]) by userp2130.oracle.com (8.16.0.22/8.16.0.22) with SMTP id w43DUu5C181162; Thu, 3 May 2018 13:31:09 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oracle.com; h=mime-version : references : in-reply-to : from : date : message-id : subject : to : cc : content-type; s=corp-2017-10-26; bh=Fg0hRBw+fSisyUHOLItdmMO8JZaOyr1Kr1GA4yKPlcI=; b=gI8NIfbmiB4l12oGcrssHbRps03T8XGwM2hzPNMOV3AHH07355I7DM3WV3G7Ufyc+fVm +HRQhqApqQ8uYtyk8CrKxFnnt3+Ty4MVfkqDAXkAEVPrbgBQOsmbHa/LHO2STkBvQBgv 5n7K6BPbS3kURJgJlVhyfJsbMxSWAR66Za9k8q9hc2xw7SpLma0a8gmSMSIEBgX2r6HK FDVmnHCcEnWJb3+NrlsT0gjv/d7vf+mLrmNMNUuIWMZdfBFLuiyN+76Lt5e2QDP6wvdD BWcvzUJO3kyxA1ss9Oqmq4Gy3Bw9+Ncbh+aTRoob2Z8Wa+E01CiDMyRpEvsIFhAxvEUf Tw== Received: from aserv0021.oracle.com (aserv0021.oracle.com [141.146.126.233]) by userp2130.oracle.com with ESMTP id 2hmgdjsscj-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Thu, 03 May 2018 13:31:09 +0000 Received: from aserv0121.oracle.com (aserv0121.oracle.com [141.146.126.235]) by aserv0021.oracle.com (8.14.4/8.14.4) with ESMTP id w43DV7UI017675 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Thu, 3 May 2018 13:31:07 GMT Received: from abhmp0019.oracle.com (abhmp0019.oracle.com [141.146.116.25]) by aserv0121.oracle.com (8.14.4/8.13.8) with ESMTP id w43DV736026298; Thu, 3 May 2018 13:31:07 GMT Received: from mail-ot0-f178.google.com (/74.125.82.178) by default (Oracle Beehive Gateway v4.0) with ESMTP ; Thu, 03 May 2018 06:31:07 -0700 Received: by mail-ot0-f178.google.com with SMTP id t1-v6so20610372oth.8; Thu, 03 May 2018 06:31:06 -0700 (PDT) X-Gm-Message-State: ALQs6tAnHKSfudBPXM8moIJAPXgzlf8lgZ+BIrv34Mh9TBzXUBGXZ6dK 5pPrQVl2jxsPzdBlxwZpc+0xCyDY6SGKtLrhPQw= X-Received: by 2002:a9d:336c:: with SMTP id u41-v6mr3850716otd.259.1525354266322; Thu, 03 May 2018 06:31:06 -0700 (PDT) MIME-Version: 1.0 References: <20180503035931.22439-1-pasha.tatashin@oracle.com> <20180503035931.22439-2-pasha.tatashin@oracle.com> In-Reply-To: From: Pavel Tatashin Date: Thu, 03 May 2018 13:30:30 +0000 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH 1/2] ixgbe: release lock for the duration of ixgbe_suspend_close() To: alexander.duyck@gmail.com Cc: Steven Sistare , Daniel Jordan , LKML , jeffrey.t.kirsher@intel.com, intel-wired-lan@lists.osuosl.org, netdev@vger.kernel.org, gregkh@linuxfoundation.org Content-Type: text/plain; charset="UTF-8" X-Proofpoint-Virus-Version: vendor=nai engine=5900 definitions=8881 signatures=668698 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 suspectscore=3 malwarescore=0 phishscore=0 bulkscore=0 spamscore=0 mlxscore=0 mlxlogscore=925 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1711220000 definitions=main-1805030120 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Alex, > I'm not a fan of dropping the mutex while we go through > ixgbe_close_suspend. I'm concerned it will result in us having a > number of races on shutdown. I would agree, but ixgbe_close_suspend() is already called without this mutex from ixgbe_close(). This path is executed also during machine shutdown but when kexec'ed. So, it is either an existing bug or there are no races. But, because ixgbe_close() is called from the userland, and a little earlier than ixgbe_shutdown() I think this means there are no races. > If anything, I think we would need to find a replacement for the mutex > that can operate at the per-netdev level if you are wanting to > parallelize this. Yes, if lock is necessary, it can be replaced in this place (and added to ixgbe_close()) with something scalable. Thank you, Pavel