Received: by 2002:a25:868d:0:0:0:0:0 with SMTP id z13csp1730034ybk; Thu, 21 May 2020 13:54:58 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwvSRVw8pFp7wYlmg03BCyejPnH40tVBF3Lu+ue23uIbYHxj+7A9NplU8BOpZ0uAFsB8Fgr X-Received: by 2002:a17:906:1917:: with SMTP id a23mr5134397eje.506.1590094498420; Thu, 21 May 2020 13:54:58 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1590094498; cv=none; d=google.com; s=arc-20160816; b=VALmIDYJsWHA0pED+1iXHmPB6r69cOz7scKine2WopmKLLmf6tmM8gFwUQdYJ2krfI FPEo/5Ap7/59zlx1W76ANcJBsCwocY6ATVPURewOKHT+hxXgwfg5/lGBa1eJogDgTFtT CHUdvqdmak1X3Od0QHwkwbRV/zFdd4HwU5UKfKUy5StIHXEz9sj5JgK7B+6PP6BTApSB aQbZAfp8CnKZm1cZ3dHBYnZTovpHhW6+2VUBaq/nxBQPzyeQeihf1wtVZU8Y3+jAcFIZ IvAayWY20nagmmVE2BIzbThXrBAqEC+4bLVX+YUpJ4mTtovBSEJKG3wpR/QSbQKDuno2 nC6Q== 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=81bSQzXvdyOVXKSP2BFvKmTwWEQzFiolej+h+qIrxXw=; b=zsdGz7sG8rbzEIzAaRbb5fdRGrAMqIupwDeyy+o/h1n8wQ/GIJewGcgtqZArqmdqBs ZeS+m2Lx1pW25Tul7c0RuPW3JU0GgTUeUei2dEx1FCoI9yzJijr2CjJHJKT/sLrA21Vs CzbSM0+dy23QaPj0O3G0qszCKGxkGGHydRa7dEaREvKLxXaPLM/gMtHMxxrnVpIrCh7y xnCf6rhPT7wewOIoh277kdEpd4pKigO5C70xJtgxIqeZbrHnUbc0VNFDrR2PfWinzq3g C8wuFCuN+oDAVOE8yz2Aqd5PSv2NnR2EBG0Rw6YRDiun0OFV/mGVhFfGDQlXEQjZq7h3 xz1A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@oracle.com header.s=corp-2020-01-29 header.b="YYfi0/zS"; 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.54.34; Thu, 21 May 2020 13:54:58 -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="YYfi0/zS"; 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 S1729596AbgEUUyP (ORCPT + 99 others); Thu, 21 May 2020 16:54:15 -0400 Received: from userp2130.oracle.com ([156.151.31.86]:59738 "EHLO userp2130.oracle.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728778AbgEUUyP (ORCPT ); Thu, 21 May 2020 16:54:15 -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 04LKpLfS159387; Thu, 21 May 2020 20:53:56 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=81bSQzXvdyOVXKSP2BFvKmTwWEQzFiolej+h+qIrxXw=; b=YYfi0/zSz/Aazpti8UKYc1Xh7klWnhME82+PD0US8NCUAWgg44fS9+DQKUyKuT1G/kAi gEL3JaFyT2tyHExQFk3FFNOwMDk9kSv3DEYjof3J9kudMJzXmROaPZofvK3wM2Q6QyUN AV8YtpKMsQLWI5N9+tI0uP9uY6yecm03OzhER1ngdVgT8xxuUAJub0YjR5Jy+H2H8VRe amDCZ5QM+rxpsH9qPkjWvOjORfJ1me08vArVBZDp1NJUWSDo7WlGl5rxOJFkK2/+Pu5X V0eLqTgRJ2sCskzh0iSK1i2ZHvfoIMSC6QoWSt0x4khLAAsmHgFI74ZX63L1iYPI5sc0 2Q== Received: from userp3020.oracle.com (userp3020.oracle.com [156.151.31.79]) by userp2130.oracle.com with ESMTP id 3127krjqsd-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=FAIL); Thu, 21 May 2020 20:53:56 +0000 Received: from pps.filterd (userp3020.oracle.com [127.0.0.1]) by userp3020.oracle.com (8.16.0.42/8.16.0.42) with SMTP id 04LKnG7t029837; Thu, 21 May 2020 20:51:55 GMT Received: from aserv0122.oracle.com (aserv0122.oracle.com [141.146.126.236]) by userp3020.oracle.com with ESMTP id 31502349pj-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Thu, 21 May 2020 20:51:55 +0000 Received: from abhmp0016.oracle.com (abhmp0016.oracle.com [141.146.116.22]) by aserv0122.oracle.com (8.14.4/8.14.4) with ESMTP id 04LKpsdt024502; Thu, 21 May 2020 20:51:54 GMT Received: from localhost.localdomain (/98.229.125.203) by default (Oracle Beehive Gateway v4.0) with ESMTP ; Thu, 21 May 2020 13:51:54 -0700 From: Daniel Jordan To: Greg Kroah-Hartman , Sasha Levin Cc: Ben Hutchings , Herbert Xu , Mathias Krause , Peter Zijlstra , Steffen Klassert , stable@vger.kernel.org, linux-crypto@vger.kernel.org, Daniel Jordan Subject: [stable-4.4 5/5] padata: purge get_cpu and reorder_via_wq from padata_do_serial Date: Thu, 21 May 2020 16:51:45 -0400 Message-Id: <20200521205145.1953392-5-daniel.m.jordan@oracle.com> X-Mailer: git-send-email 2.26.2 In-Reply-To: <20200521205145.1953392-1-daniel.m.jordan@oracle.com> References: <20200521205145.1953392-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 spamscore=0 mlxscore=0 mlxlogscore=999 adultscore=0 bulkscore=0 suspectscore=0 phishscore=0 malwarescore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2004280000 definitions=main-2005210154 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-2005210155 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 43b72f5dfe07..c50975f43b34 100644 --- a/kernel/padata.c +++ b/kernel/padata.c @@ -322,24 +322,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); @@ -353,8 +338,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