Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp860187ybi; Tue, 16 Jul 2019 06:19:02 -0700 (PDT) X-Google-Smtp-Source: APXvYqxUf145BbUNKSi9Y0tAZh22rd9prHv0UXxBxQ1NJg1qNYsRjJpMJkUQFoKMbC11nY20gsKn X-Received: by 2002:a17:90a:7787:: with SMTP id v7mr36379611pjk.143.1563283142548; Tue, 16 Jul 2019 06:19:02 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1563283142; cv=none; d=google.com; s=arc-20160816; b=fwSuOhN8NTYCefa/fzsPnZzKi4pLdPTtaLuxYIrkzBHwhsq+Kh6kIm2Z8RuzNF1hT8 G5Etu80YyJl5v9i9nqDUkDKn/eaPsjjcneCOs90pUWtzm74OpYgKogIVTi2vW3sLFcs5 yQ/w/xS3Y7klDRXldeAOsNBpxxlSdxqTdc1ciAmPFIobymKkrXl0SD8qYvOyLvOdighQ PRqYqsOTjilMM3EZ9aKTlBNbH8WqOQCyWDCDB6EwfhzNEhdaw1rPyXhqUfZB89d6bK4W APYj1/r7Kv/iAcNi/5erTc3kLJ9wpsclDgWXAzy2f808V1eJhj+cHwGm2NH+Sz0bmfiT b4vA== 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=W45+3WpOPOIRCqsBnN2wZwnep4QDgeQd02kOBKXA7n4=; b=Wq6QB5Hc5Z4etkHK/hvYYmPyes0vlH5I9RXHEwh9thsVoQYsG3ZiZDBUpxi7fuGIV7 uM0WYnhGZ5hy+iRHxJmWZh+SoKS3+J3vBDqAL7hmO+hDVixDI8U4ja6JlRPL4OBx6XJW Of9EIXut6aW8yPjHk3uG1y3ba/VpVcRSF2k8KG+1oXFOMRE84Pwb6iHFzNsLEcLkL6uu GAtiL5nBgeQyFtYqQiSI4NX9bq7TUysMxMjKdSsMy7qhj/aQ+NDYyRY0oofD4JRPgWgy SQwc0rDuFtYUWyC9G8SXkCGnGPp3E12ksNWvbbSzjoaVafcEGG9xNRqVjPpgIsL0Gh7K jWdw== 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 f8si20063355pfn.43.2019.07.16.06.18.47; Tue, 16 Jul 2019 06:19:02 -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 S1730754AbfGPNST (ORCPT + 99 others); Tue, 16 Jul 2019 09:18:19 -0400 Received: from helcar.hmeau.com ([216.24.177.18]:59358 "EHLO deadmen.hmeau.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726593AbfGPNST (ORCPT ); Tue, 16 Jul 2019 09:18:19 -0400 Received: from gondobar.mordor.me.apana.org.au ([192.168.128.4] helo=gondobar) by deadmen.hmeau.com with esmtps (Exim 4.89 #2 (Debian)) id 1hnNLN-0005bY-LT; Tue, 16 Jul 2019 21:18:09 +0800 Received: from herbert by gondobar with local (Exim 4.89) (envelope-from ) id 1hnNLL-0004oo-Eq; Tue, 16 Jul 2019 21:18:07 +0800 Date: Tue, 16 Jul 2019 21:18:07 +0800 From: Herbert Xu To: Peter Zijlstra Cc: Steffen Klassert , Daniel Jordan , andrea.parri@amarulasolutions.com, boqun.feng@gmail.com, paulmck@linux.ibm.com, linux-arch@vger.kernel.org, linux-crypto@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] padata: Use RCU when fetching pd from do_serial Message-ID: <20190716131807.twahbbdff6jhpnu2@gondor.apana.org.au> References: <20190711221205.29889-1-daniel.m.jordan@oracle.com> <20190712100636.mqdr567p7ozanlyl@gondor.apana.org.au> <20190712101012.GW14601@gauss3.secunet.de> <20190712160737.iniaaxlsnhs6azg5@ca-dmjordan1.us.oracle.com> <20190713050321.c5wq7a7jrb6q2pxn@gondor.apana.org.au> <20190715161045.zqwgsp62uqjnvx3l@ca-dmjordan1.us.oracle.com> <20190716100447.pdongriwwfxsuajf@gondor.apana.org.au> <20190716111410.GN17989@gauss3.secunet.de> <20190716125704.l2jolyyd3bue6hhn@gondor.apana.org.au> <20190716131520.GB3402@hirez.programming.kicks-ass.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20190716131520.GB3402@hirez.programming.kicks-ass.net> User-Agent: NeoMutt/20170113 (1.7.2) Sender: linux-crypto-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-crypto@vger.kernel.org On Tue, Jul 16, 2019 at 03:15:20PM +0200, Peter Zijlstra wrote: > > > @@ -367,7 +368,7 @@ void padata_do_serial(struct padata_priv *padata) > > struct parallel_data *pd; > > int reorder_via_wq = 0; > > > > - pd = padata->pd; > > + pd = rcu_dereference_bh(padata->inst->pd); > > > > cpu = get_cpu(); > > > > That's weird for not having a matching assign and lacking comments to > explain that. There is a matching rcu_assign_pointer. But we should add some RCU markers. Or perhaps you're misreading the level of indirections :) Cheers, -- Email: Herbert Xu Home Page: http://gondor.apana.org.au/~herbert/ PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt