Received: by 2002:a25:868d:0:0:0:0:0 with SMTP id z13csp1728566ybk; Thu, 21 May 2020 13:52:03 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwMyd5NXpKIc6FyU9NkeNy4KvxLiSxzi8dJhsIriu0FoW31016DtKoXw89hmzjHefFEXN5d X-Received: by 2002:a50:d553:: with SMTP id f19mr479738edj.219.1590094322801; Thu, 21 May 2020 13:52:02 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1590094322; cv=none; d=google.com; s=arc-20160816; b=BD8c1hRBQ4a7TNtpIXZQLejZIOXdnDpyDyRZwKtByz8sEyeW2gOI5Cs2nk6jVb7gKg fYnqKgvfRT5W8nVyZuFoIN62ggXCxyXLkIr+tq8w1X9ED3/0quFpFuTZCV7bnUYw5lH2 uKlMIjVvxiPnt3h8C5jKrNDLFIr8uL9j/gpqgvv54k61kVhXrcmK59rDxYZ7Y1dnQibR 70Qcn9X3xfyPvyFFWX25s6KeIf/ELNfpapLgPmeX3t8zGC+44b8M5IaieIV4++TJ1B4V BYik4+t5WG68pDrqVZRXm8GQKbl6Pe7LGYIzfw4ceTn84+Pk84MlRaYYu1Ncfe0J0MSt 6heA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=FpHavtCwfTuj0H4Nw5+GTtPCp7SSVHfMgPtaQ1/lCxk=; b=QM/zV/4uSvxrumhKWaTa7WaOp8vD6Y/hmthzcOt8VF2eBElI2jby4IsEwMflmFF42p v60CYf+DaYXTGcLB3zZ9KciDJehxQi514qISbHNpGSAjcXc3ONRA3t2aBLbcVZEnXseW e41PTJs53zGyAM4lywJ/c5Gmtr4siRp4teLp+QL1vrh9jvIKZD//CG1ETGYYS3NL4n2U UVqIOwcqY77K/8PTI5RcvrOY3Mcv/fafJzxkH3kl5zrdkadyqInyuMe9IKNvujWzm2Mw 7x9bBSXakyJ17Hd5oe960v0zMZIivnas8LZWcL87JJo4KAEmBoriXetUWWaeYcSMtgGh DaZg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@oracle.com header.s=corp-2020-01-29 header.b="j79dd/tV"; spf=pass (google.com: domain of linux-crypto-owner@vger.kernel.org designates 23.128.96.18 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. [23.128.96.18]) by mx.google.com with ESMTP id c22si3649032edx.33.2020.05.21.13.51.39; Thu, 21 May 2020 13:52:02 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-crypto-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@oracle.com header.s=corp-2020-01-29 header.b="j79dd/tV"; spf=pass (google.com: domain of linux-crypto-owner@vger.kernel.org designates 23.128.96.18 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 S1729787AbgEUUvI (ORCPT + 99 others); Thu, 21 May 2020 16:51:08 -0400 Received: from userp2130.oracle.com ([156.151.31.86]:57696 "EHLO userp2130.oracle.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729562AbgEUUvI (ORCPT ); Thu, 21 May 2020 16:51:08 -0400 Received: from pps.filterd (userp2130.oracle.com [127.0.0.1]) by userp2130.oracle.com (8.16.0.42/8.16.0.42) with SMTP id 04LKlekJ143189; Thu, 21 May 2020 20:50:57 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oracle.com; h=from : to : cc : subject : date : message-id : in-reply-to : references : mime-version : content-transfer-encoding; s=corp-2020-01-29; bh=FpHavtCwfTuj0H4Nw5+GTtPCp7SSVHfMgPtaQ1/lCxk=; b=j79dd/tV+iDi7apAN0Iwc2IfGxb8FVTEoH2dW139FnqKyadTakkmhPqF1CFzEsicS5cg t95RGCpOcXG9mJ1fPftN0xB6Hk+KerD7gXyXIZa1ktCxJghb4tWinNZukjjyVWLa4FBB aeCeYdwu14t+D3s/Y4OFuqPrEBm4TPgP2RPXa+lVtFztRnx+i5idOMYj+QUsGrt/PxHO ydjb0UTD7X4SA4sKqS0OkMfXnBCz2h+VEcEVIxeZA4wAfIByPkpNtsX6qgyRYeIj+UXt psKxHqJ9Vi75u3TTjVDnzz+eB15XBN3t8hT+Tc8VaUKJofJfHOwp2COR7qx9lDcQy4pl Sg== Received: from aserp3020.oracle.com (aserp3020.oracle.com [141.146.126.70]) by userp2130.oracle.com with ESMTP id 3127krjqct-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=FAIL); Thu, 21 May 2020 20:50:57 +0000 Received: from pps.filterd (aserp3020.oracle.com [127.0.0.1]) by aserp3020.oracle.com (8.16.0.42/8.16.0.42) with SMTP id 04LKhEBT072778; Thu, 21 May 2020 20:48:56 GMT Received: from userv0122.oracle.com (userv0122.oracle.com [156.151.31.75]) by aserp3020.oracle.com with ESMTP id 312t3capth-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Thu, 21 May 2020 20:48:56 +0000 Received: from abhmp0002.oracle.com (abhmp0002.oracle.com [141.146.116.8]) by userv0122.oracle.com (8.14.4/8.14.4) with ESMTP id 04LKmsK9029696; Thu, 21 May 2020 20:48:55 GMT Received: from localhost.localdomain (/98.229.125.203) by default (Oracle Beehive Gateway v4.0) with ESMTP ; Thu, 21 May 2020 13:48:54 -0700 From: Daniel Jordan To: Greg Kroah-Hartman , Sasha Levin Cc: Ben Hutchings , Herbert Xu , Mathias Krause , Steffen Klassert , stable@vger.kernel.org, linux-crypto@vger.kernel.org, Daniel Jordan Subject: [stable-4.9 4/4] padata: purge get_cpu and reorder_via_wq from padata_do_serial Date: Thu, 21 May 2020 16:48:47 -0400 Message-Id: <20200521204847.1953064-4-daniel.m.jordan@oracle.com> X-Mailer: git-send-email 2.26.2 In-Reply-To: <20200521204847.1953064-1-daniel.m.jordan@oracle.com> References: <20200521204847.1953064-1-daniel.m.jordan@oracle.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Proofpoint-Virus-Version: vendor=nai engine=6000 definitions=9628 signatures=668686 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 bulkscore=0 spamscore=0 mlxlogscore=999 phishscore=0 mlxscore=0 malwarescore=0 suspectscore=0 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2004280000 definitions=main-2005210153 X-Proofpoint-Virus-Version: vendor=nai engine=6000 definitions=9628 signatures=668686 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 adultscore=0 phishscore=0 spamscore=0 bulkscore=0 clxscore=1015 priorityscore=1501 mlxscore=0 impostorscore=0 suspectscore=0 mlxlogscore=999 malwarescore=0 cotscore=-2147483648 lowpriorityscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2004280000 definitions=main-2005210154 Sender: linux-crypto-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-crypto@vger.kernel.org [ Upstream commit 065cf577135a4977931c7a1e1edf442bfd9773dd ] With the removal of the padata timer, padata_do_serial no longer needs special CPU handling, so remove it. Signed-off-by: Daniel Jordan Cc: Herbert Xu Cc: Steffen Klassert Cc: linux-crypto@vger.kernel.org Cc: linux-kernel@vger.kernel.org Signed-off-by: Herbert Xu Signed-off-by: Daniel Jordan --- kernel/padata.c | 23 +++-------------------- 1 file changed, 3 insertions(+), 20 deletions(-) diff --git a/kernel/padata.c b/kernel/padata.c index 1030e6cfc08c..e82f066d63ac 100644 --- a/kernel/padata.c +++ b/kernel/padata.c @@ -323,24 +323,9 @@ static void padata_serial_worker(struct work_struct *serial_work) */ void padata_do_serial(struct padata_priv *padata) { - int cpu; - struct padata_parallel_queue *pqueue; - struct parallel_data *pd; - int reorder_via_wq = 0; - - pd = padata->pd; - - cpu = get_cpu(); - - /* We need to enqueue the padata object into the correct - * per-cpu queue. - */ - if (cpu != padata->cpu) { - reorder_via_wq = 1; - cpu = padata->cpu; - } - - pqueue = per_cpu_ptr(pd->pqueue, cpu); + struct parallel_data *pd = padata->pd; + struct padata_parallel_queue *pqueue = per_cpu_ptr(pd->pqueue, + padata->cpu); spin_lock(&pqueue->reorder.lock); list_add_tail(&padata->list, &pqueue->reorder.list); @@ -354,8 +339,6 @@ void padata_do_serial(struct padata_priv *padata) */ smp_mb__after_atomic(); - put_cpu(); - padata_reorder(pd); } EXPORT_SYMBOL(padata_do_serial); -- 2.26.2