Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp691430ybi; Fri, 12 Jul 2019 03:08:03 -0700 (PDT) X-Google-Smtp-Source: APXvYqz7p4Vy+cCtBnMke6Ikl4E8E/HTYysenge3rQuvc98RpreN9ObW43PCeCmQ651T48lvSnV+ X-Received: by 2002:a17:90a:2767:: with SMTP id o94mr10298486pje.25.1562926083533; Fri, 12 Jul 2019 03:08:03 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1562926083; cv=none; d=google.com; s=arc-20160816; b=UjHwivqwJxmsQ3dcQxM2Liv3GJyGDQivd5ZscHGgcDAkj9I3rosanLBV+fvyjlIrER lGA1Lo51H3JCqHPPMkdEigvfeYaRfpVzcI+nzLihZXTbfxwgFzOy9UdlbBNVcdEqUu/F 0w425PT+vPjJSy6msp4RDhcTMZBmQP1WvjNwHaOwSptdyFPFgIZps2pO6fpNxhfM9XgR A8BtZWUDrLAwbiuI9i2TJZ+Yi58LRQ3pqC9bjj03ytKACfLp+huU4ZGBT6bB0pGUOkR8 Skb4v1pW1/dCONEmI+gjx5mC3Wmj9fyBxg9TZyfu4aAQI3aDzU9mN5cEHlYm8Hz2XTGY emgg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:organization:in-reply-to :content-disposition:mime-version:message-id:subject:cc:to:from:date; bh=QfbjgjYl4fxJLopgb80DTxYi75nSFv7j09vnha0IBQo=; b=sTQS/LKNDPjzgcRYnju+2vwaQi2LW1QYuX3Q14DFKOBf8SthKgAqQS/16CNfjWNo4C YvD8Ux42rPr+ut1vcZq3Z/BZLS38LgLUEqY0AVbMyj/eGcv6mCpAXHVudzzlT9/QdmHg 3GHSm2BWtPOLvZYI0FYFeGVsLZTDf++SmY4Tt8wS2fpxbHspp/oHTsQhX5eVlq3jmYEV zqUFOtMlSwkKM0vXF4mrBgHGDiCf+yNRCQeU2cKHK+Vng0P2nG4qoRz2gLUoEABRef+N 4mRP0NJaqwbA7M9IBrdtmfJXxaIn+JlpxHKjkUDK470q4Js0rfrxMzRQwYhjDjlii2tE XWSg== 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 v10si3485299pgb.148.2019.07.12.03.07.34; Fri, 12 Jul 2019 03:08:03 -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 S1726085AbfGLKGy (ORCPT + 99 others); Fri, 12 Jul 2019 06:06:54 -0400 Received: from helcar.hmeau.com ([216.24.177.18]:43770 "EHLO deadmen.hmeau.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726002AbfGLKGx (ORCPT ); Fri, 12 Jul 2019 06:06:53 -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 1hlsRw-0005RC-6Z; Fri, 12 Jul 2019 18:06:44 +0800 Received: from herbert by gondobar with local (Exim 4.89) (envelope-from ) id 1hlsRo-0007zt-RH; Fri, 12 Jul 2019 18:06:36 +0800 Date: Fri, 12 Jul 2019 18:06:36 +0800 From: Herbert Xu To: Daniel Jordan Cc: steffen.klassert@secunet.com, daniel.m.jordan@oracle.com, andrea.parri@amarulasolutions.com, boqun.feng@gmail.com, paulmck@linux.ibm.com, peterz@infradead.org, linux-arch@vger.kernel.org, linux-crypto@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] padata: use smp_mb in padata_reorder to avoid orphaned padata jobs Message-ID: <20190712100636.mqdr567p7ozanlyl@gondor.apana.org.au> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20190711221205.29889-1-daniel.m.jordan@oracle.com> X-Newsgroups: apana.lists.os.linux.cryptoapi,apana.lists.os.linux.kernel Organization: Core 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 Daniel Jordan wrote: > > CPU0 CPU1 > > padata_reorder padata_do_serial > LOAD reorder_objects // 0 > INC reorder_objects // 1 > padata_reorder > TRYLOCK pd->lock // failed > UNLOCK pd->lock I think this can't happen because CPU1 won't call padata_reorder at all as it's the wrong CPU so it gets pushed back onto a work queue which will go back to CPU0. Steffen, could you please take a look at this as there clearly is a problem here? Thanks, -- Email: Herbert Xu Home Page: http://gondor.apana.org.au/~herbert/ PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt