Received: by 2002:a25:8b12:0:0:0:0:0 with SMTP id i18csp453027ybl; Tue, 20 Aug 2019 23:44:23 -0700 (PDT) X-Google-Smtp-Source: APXvYqwXtrJnIeIT5dVN5m+nDdj9lXSbVyrge41OzY9qtvqvL658sacz6ctm8l0Id7VLN4ZVSopW X-Received: by 2002:a17:902:6a8c:: with SMTP id n12mr31803718plk.159.1566369863049; Tue, 20 Aug 2019 23:44:23 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1566369863; cv=none; d=google.com; s=arc-20160816; b=CLSBhFLgjYfv9Ff+L5myK3LIEXYR4a7DtDMuPfGcgMZIsw4XNgP8pUQJHMQ0f5M6cG tMHRut16m9RKIsKAwuCdwsWj+p0HOnTkHng3ubAKZaGtM4qii4l4R9x1VRobJy3xOX2x iK3bE9RHO0A3wKLzscY/iczfIVNDLuqGl/sOuzn4g74EldQodzgh4m7LXQsGWPGdRYUU pj/UYWg1d5YXQ73ulwYf+8BM6+W1W7OiI3VvP+HE0jkKBDThVfcgFc6pcuw+zDc6rGi5 cC+xxcHC2RehXhbeMsaOCFzPmZWaGElvHA3L/95b8CWwm6iStZdKGV6HwSTC+2yTN+ma j3oQ== 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; bh=Rpi6xU2rEjEEOeQmi+ybTZZV5u0wL8K2ZoncvoWXGug=; b=rFjs3sQJbZYJJ3XVprshtseuk63WzMK4NTOLvD0GeOc+aQea0/20p3nPc/tlXSAT0B MQ6rho/DnwZLHuueBv1RQdSpl+I+kfIinR4eTMw2Kl4wnu96+CNSRhW6RyQ19kjGRHmr pOl768Vw4pqIdhdlsmYo/Pmbs/xaN7NciolCEw5699tMIEPay0qojheccbjlcdhFFANS w7z/h+6BVABPVna4cEfQ8fsXEaNGV7mnszrpkA9BDriE1KfIMay4MFoXt2j6+YjfBr9o WO5GwcTnyae4ASUY4X5Cxq2DPhQBf0t8LIsrgyw6s68DmO+PRX4DvefPCF7owTZIFzUm aSOA== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id y7si13926782pgj.486.2019.08.20.23.44.09; Tue, 20 Aug 2019 23:44:23 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726388AbfHUGoB (ORCPT + 99 others); Wed, 21 Aug 2019 02:44:01 -0400 Received: from helcar.hmeau.com ([216.24.177.18]:58086 "EHLO fornost.hmeau.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727448AbfHUGoB (ORCPT ); Wed, 21 Aug 2019 02:44:01 -0400 Received: from gondolin.me.apana.org.au ([192.168.0.6] helo=gondolin.hengli.com.au) by fornost.hmeau.com with esmtps (Exim 4.89 #2 (Debian)) id 1i0KLX-00023X-Tn; Wed, 21 Aug 2019 16:43:52 +1000 Received: from herbert by gondolin.hengli.com.au with local (Exim 4.80) (envelope-from ) id 1i0KLV-0005nN-HP; Wed, 21 Aug 2019 16:43:49 +1000 Date: Wed, 21 Aug 2019 16:43:49 +1000 From: Herbert Xu To: Daniel Jordan Cc: Steffen Klassert , linux-crypto@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH 1/2] padata: always acquire cpu_hotplug_lock before pinst->lock Message-ID: <20190821064349.GA22104@gondor.apana.org.au> References: <20190809192857.26585-1-daniel.m.jordan@oracle.com> <20190815051518.GB24982@gondor.apana.org.au> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.21 (2010-09-15) Sender: linux-crypto-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-crypto@vger.kernel.org On Wed, Aug 21, 2019 at 12:14:19AM -0400, Daniel Jordan wrote: > > I'll try fixing the flushing with Steffen's refcounting idea assuming he hasn't already started on that. So we're on the same page, the problem is that if padata's ->parallel() punts to a cryptd thread, flushing the parallel work will return immediately without necessarily indicating the parallel job is finished, so flushing is pointless and padata_replace needs to wait till the instance's refcount drops to 0. Did I get it right? Yeah you can never flush an async crypto job. You have to wait for it to finish. Cheers, -- Email: Herbert Xu Home Page: http://gondor.apana.org.au/~herbert/ PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt