Received: by 10.192.165.148 with SMTP id m20csp1383561imm; Wed, 2 May 2018 21:00:19 -0700 (PDT) X-Google-Smtp-Source: AB8JxZqoAUKMo21DdhzIisnFmS9mNk/pvSuLUzRL1a8TKqMywmVv8lLg/yO2TmV8/q/Ns8+Gk73v X-Received: by 2002:a17:902:31a4:: with SMTP id x33-v6mr22608122plb.355.1525320019191; Wed, 02 May 2018 21:00:19 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1525320019; cv=none; d=google.com; s=arc-20160816; b=JBTduPOyc2veBhyUl8qLkuQtRPQMn/O09i89tmaFN4E/yAE9gQQEVEyDZQCuXO4tpZ yrDLy/gABzNgcmXnGN1b2qykIEz69Zs/Evb6EL8mPwrBV8dh914jkPsuk8mVCm8LfDYk G7ud0eR/fd2dfzMYfnSP5cwFC7shI/3G4Su79GY23LTQBdYew4X35CZezZG+WwpWLl+l nLaeOxTaj2kE26bIwe5gLuaGNAq61cSd0H+0lUS8vacwch9/Yayxz7BgcqYZxsz2wI/0 xtzUdrLxr85ddCnOxUTGFDbhqGlm/C6eKYPPTRb6cDio4Rn24QJrnBhA59qqzzyfP4kK kTDw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:to:from :dkim-signature:arc-authentication-results; bh=BrshmQzgDwZ7kPwOKeuqfrd2j5sWpPJcPwsH+IPWX2U=; b=k+Z2azbPam4JSiV/Yv0h9uLUsAHbzQTf/GyYDG0jBoIjYnEKmAGx+VNoF4cpltA8Ry Os2UN1oy12umw3GVeCj4ndsliCREgYBm3Ewce/2C7+58FisEoMTi3CDgjsAlnjeODKAV 5qRnZQGoeGMkl6qy8hz6h1s6ytPGO0nXZ/is/R015D+4K0127RiTNuQzXB+XjUlAUo8P 9akCfpO7zHYVBj5G+blgMMZvCAODnrUkZzaRb+ZRkwMMmh15O+uNr5r16kria1rkrcfG zJdBoXygqAQQZEgzg5V7l5vRAd+4JOLvRoGhlVzkCt9K3ASzlqppBGl+ijtvo5YLR4Lh zpuQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@oracle.com header.s=corp-2017-10-26 header.b=qFg/tlwq; 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 z3-v6si10967332pgs.671.2018.05.02.21.00.02; Wed, 02 May 2018 21:00:18 -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=qFg/tlwq; 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 S1751977AbeECD7p (ORCPT + 99 others); Wed, 2 May 2018 23:59:45 -0400 Received: from userp2130.oracle.com ([156.151.31.86]:46248 "EHLO userp2130.oracle.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751741AbeECD7n (ORCPT ); Wed, 2 May 2018 23:59:43 -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 w433pdpj182709; Thu, 3 May 2018 03:59:39 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oracle.com; h=from : to : subject : date : message-id; s=corp-2017-10-26; bh=BrshmQzgDwZ7kPwOKeuqfrd2j5sWpPJcPwsH+IPWX2U=; b=qFg/tlwqVrL6LkQ7CpnROK2DIcog9TuPRXmY9HzsIExWOq41Wk9CqngipWqyBJLFmucJ MQACOHb+lX1itX8MvA2hvVr0E99dEiZLo9i2LUit5iZNCAWlyWj7LLyU2PQbj1oKsqZ7 3QY8zBFs0DskimRk+XFqA2nNOr/3I4X6uX3pCOwiEveDu0ghJSDMRAfgjMU9V4Xvhxv1 v32gKFzgfTtIK7m6cKSCfCPdYp1T6ctqJzHgZO0E6n9yKD/HHiKc4ykg7Of8xM0NNG8h 0mJ/chYgaL3Rvp72Oq2O+YeW5lPyvgNNHuUw229l2Zq5CPEoBnrYnS1kMl+AbW6bCfHl +Q== Received: from aserv0022.oracle.com (aserv0022.oracle.com [141.146.126.234]) by userp2130.oracle.com with ESMTP id 2hmgdjqrp1-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Thu, 03 May 2018 03:59:39 +0000 Received: from aserv0121.oracle.com (aserv0121.oracle.com [141.146.126.235]) by aserv0022.oracle.com (8.14.4/8.14.4) with ESMTP id w433xc90015937 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Thu, 3 May 2018 03:59:38 GMT Received: from abhmp0002.oracle.com (abhmp0002.oracle.com [141.146.116.8]) by aserv0121.oracle.com (8.14.4/8.13.8) with ESMTP id w433xccR013828; Thu, 3 May 2018 03:59:38 GMT Received: from xakep.us.oracle.com (/10.154.188.87) by default (Oracle Beehive Gateway v4.0) with ESMTP ; Wed, 02 May 2018 20:59:37 -0700 From: Pavel Tatashin To: pasha.tatashin@oracle.com, steven.sistare@oracle.com, daniel.m.jordan@oracle.com, linux-kernel@vger.kernel.org, jeffrey.t.kirsher@intel.com, intel-wired-lan@lists.osuosl.org, netdev@vger.kernel.org, gregkh@linuxfoundation.org Subject: [PATCH 0/2] multi-threading device shutdown Date: Wed, 2 May 2018 23:59:29 -0400 Message-Id: <20180503035931.22439-1-pasha.tatashin@oracle.com> X-Mailer: git-send-email 2.17.0 X-Proofpoint-Virus-Version: vendor=nai engine=5900 definitions=8881 signatures=668698 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 suspectscore=0 malwarescore=0 phishscore=0 bulkscore=0 spamscore=0 mlxscore=0 mlxlogscore=605 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1711220000 definitions=main-1805030034 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Do a faster shutdown by calling dev->*->shutdown(dev) in parallel. device_shutdown() calls these functions for every single device but only using one thread. Since, nothing else is running on the machine by the device_shutdown() s called, there is no reason not to utilize all the available CPU resources. Pavel Tatashin (2): ixgbe: release lock for the duration of ixgbe_suspend_close() drivers core: multi-threading device shutdown drivers/base/core.c | 238 ++++++++++++++---- drivers/net/ethernet/intel/ixgbe/ixgbe_main.c | 9 +- 2 files changed, 197 insertions(+), 50 deletions(-) -- 2.17.0