Received: by 2002:a25:c593:0:0:0:0:0 with SMTP id v141csp219688ybe; Wed, 18 Sep 2019 15:56:25 -0700 (PDT) X-Google-Smtp-Source: APXvYqyB+IPNluVHTdWNxKubALCnfHzWxpyYUxiawnac6c2SuHphZXrS9DsqRsfPkY3kHiAHQGsh X-Received: by 2002:aa7:c2ce:: with SMTP id m14mr5454411edp.191.1568847385240; Wed, 18 Sep 2019 15:56:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1568847385; cv=none; d=google.com; s=arc-20160816; b=F5/qTznZjxEtS47sYF4rqrBdRHkQAZrGxgyDvQ7Jwe9909+9QSiNPdacjNw4yWqGsU jxvZwQ9iQUBER6TPpTGKbZx2hKL3jGCp4uhw5zaw/guO9rqtl0xqaQsQ+m4jzlVcy6Vn COoTlt8OOc3uKxqi/FNXbMlhndmgCh22mlB32yBkmXcdl6BhtGfF7BvCswZw/Pv3p4JI msyUDRlkOAE+yK7UMMA+NMHN7AZVxmrbYCsF3qTEqQEr2Z2hWW5aDUYjvrF7y7NAmk1R TJCNjq2zMXjWzPFd0dD+qvzLfLRYJjRfweCH3ckoFATiY5XHFSvDy6/typCSrccU0c4k VYcg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=cryqLvipHgUfVuStZy6gQHFH68Li1WzodPzi1Hm38z8=; b=UWwWuOaqqU+wEE8uNpQRBqiAorsEC6A2w8pNHLzRnBk9ieOLS7uULhoEvrjLwTPmSU EtOmX4GEiGBDdoT9kqRYpS1cUGoKXgtz2kFw/i6xjONbM1a8sQVh9HYXug6PqMPslZXR F/RETymE9V0P/uHLegOjQPtPyR5SUZc5xmGBpZqZGLlHTdFpzAcuuGO7gP15W22NMt56 Qgc4YLchwiG2lRjUNdU1mx3Kn5Uc5d4p2z2ZmY4RHXxS7TckfayttzWOhenpkOLXeKt3 dtf0DxdDHTjJOD4zqooXoFP9/30CrsTbt/CelNpW5g+iGo1hw9by6a4Hzg9lzPruF3SP bzpw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@oracle.com header.s=corp-2019-08-05 header.b=jUwQMtUn; spf=pass (google.com: best guess record for domain of linux-crypto-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-crypto-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 d19si4061002edv.287.2019.09.18.15.55.51; Wed, 18 Sep 2019 15:56:25 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-crypto-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-2019-08-05 header.b=jUwQMtUn; spf=pass (google.com: best guess record for domain of linux-crypto-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-crypto-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 S1726659AbfIRUh6 (ORCPT + 99 others); Wed, 18 Sep 2019 16:37:58 -0400 Received: from userp2120.oracle.com ([156.151.31.85]:36014 "EHLO userp2120.oracle.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726257AbfIRUh6 (ORCPT ); Wed, 18 Sep 2019 16:37:58 -0400 Received: from pps.filterd (userp2120.oracle.com [127.0.0.1]) by userp2120.oracle.com (8.16.0.27/8.16.0.27) with SMTP id x8IKTPIC031589; Wed, 18 Sep 2019 20:37:36 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oracle.com; h=date : from : to : cc : subject : message-id : references : mime-version : content-type : in-reply-to; s=corp-2019-08-05; bh=cryqLvipHgUfVuStZy6gQHFH68Li1WzodPzi1Hm38z8=; b=jUwQMtUne+QRIEc97eE/n7GKrRdPD32KZXpuBd55SBjOG0C0CyqIWBsYiAcQOQEnU3K+ nLjiqXcf6kfHnzVjW4SZ9FSzDyrcRxOWsmqYE8BUHeeOQrla5nLaB1GhhZcXRDs8em8P KP49jtuwdn16XI2CQUZKrSQejudN6QmJgSD0/VdU9/DnIDotat5IlMKQb0rSsDo0Ew0t oW5R7yI3RPlgL8Jamok0j3Yk/1nmDvckzXdep7DojN1H0TIAwDWRxmBKFqXQzd2E1i8d qGus9cr/ZZqzBW/1pcfLljbazRhJEOjx/mjTnSeKcZ+1qbYACcyX43GJZ6krlMavgQ88 kw== Received: from userp3020.oracle.com (userp3020.oracle.com [156.151.31.79]) by userp2120.oracle.com with ESMTP id 2v385dxdng-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Wed, 18 Sep 2019 20:37:36 +0000 Received: from pps.filterd (userp3020.oracle.com [127.0.0.1]) by userp3020.oracle.com (8.16.0.27/8.16.0.27) with SMTP id x8IKXexs092475; Wed, 18 Sep 2019 20:37:36 GMT Received: from aserv0121.oracle.com (aserv0121.oracle.com [141.146.126.235]) by userp3020.oracle.com with ESMTP id 2v37mb95v8-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Wed, 18 Sep 2019 20:37:36 +0000 Received: from abhmp0006.oracle.com (abhmp0006.oracle.com [141.146.116.12]) by aserv0121.oracle.com (8.14.4/8.13.8) with ESMTP id x8IKbY6E002285; Wed, 18 Sep 2019 20:37:34 GMT Received: from ca-dmjordan1.us.oracle.com (/10.211.9.48) by default (Oracle Beehive Gateway v4.0) with ESMTP ; Wed, 18 Sep 2019 13:37:33 -0700 Date: Wed, 18 Sep 2019 16:37:30 -0400 From: Daniel Jordan To: Herbert Xu Cc: Daniel Jordan , Steffen Klassert , Sebastian Andrzej Siewior , Thomas Gleixner , linux-crypto@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v2 1/5] padata: make flushing work with async users Message-ID: <20190918203730.4x5blgg74ah5dxup@ca-dmjordan1.us.oracle.com> References: <20190828221425.22701-1-daniel.m.jordan@oracle.com> <20190828221425.22701-2-daniel.m.jordan@oracle.com> <20190905041734.GA25330@gondor.apana.org.au> <20190905223756.wmmjkjvztlerjzee@ca-dmjordan1.us.oracle.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20190905223756.wmmjkjvztlerjzee@ca-dmjordan1.us.oracle.com> User-Agent: NeoMutt/20180716 X-Proofpoint-Virus-Version: vendor=nai engine=6000 definitions=9384 signatures=668685 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 suspectscore=0 malwarescore=0 phishscore=0 bulkscore=0 spamscore=0 mlxscore=0 mlxlogscore=999 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1908290000 definitions=main-1909180176 X-Proofpoint-Virus-Version: vendor=nai engine=6000 definitions=9384 signatures=668685 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 priorityscore=1501 malwarescore=0 suspectscore=0 phishscore=0 bulkscore=0 spamscore=0 clxscore=1015 lowpriorityscore=0 mlxscore=0 impostorscore=0 mlxlogscore=999 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1908290000 definitions=main-1909180176 Sender: linux-crypto-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-crypto@vger.kernel.org On Thu, Sep 05, 2019 at 06:37:56PM -0400, Daniel Jordan wrote: > On Thu, Sep 05, 2019 at 02:17:35PM +1000, Herbert Xu wrote: > > I don't think waiting is an option. In a pathological case the > > hardware may not return at all. We cannot and should not hold off > > CPU hotplug for an arbitrary amount of time when the event we are > > waiting for isn't even occuring on that CPU. > > Ok, I hadn't considered hardware not returning. > > > I don't think flushing is needed at all. All we need to do is > > maintain consistency before and after the CPU hotplug event. > > I could imagine not flushing would work for replacing a pd. The old pd could > be freed by whatever drops the last reference and the new pd could be > installed, all without flushing. > > In the case of freeing an instance, though, padata needs to wait for all the > jobs to complete so they don't use the instance's data after it's been freed. > Holding the CPU hotplug lock isn't necessary for this, though, so I think we're > ok to wait here. [FYI, I'm currently on leave until mid-October and will return to this series then.]