Received: by 2002:a25:868d:0:0:0:0:0 with SMTP id z13csp1723230ybk; Thu, 21 May 2020 13:42:24 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyNMAh2bS9v+RJ0nIeVlR9gt2AEGTw51xKOT4xv8wW7Z6e10Ywvak8QwRrloaLNpoIrsW1T X-Received: by 2002:a05:6402:296:: with SMTP id l22mr458553edv.353.1590093744394; Thu, 21 May 2020 13:42:24 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1590093744; cv=none; d=google.com; s=arc-20160816; b=1LVKoeqrbQsLIf/vGNuj2PpxqpjOVq7Cp7sVoh7WaO11/bcot3mEGG7G2bp28mGtOw ifSKV14AMMOpinsByEpRuMiXtr2+Slk3Hmk3hTXqaxsBC4HuZ42y0k8SSTmgxhMjTlGw 3a6v2wLMYDWSh5tHxOHpj8JNCSj8M2OTTmWGQaHGvdzGjV8ZNyjhzDFv0eccHE8642LK LyjJjKQng7f/r1mbRrrKhKaw5EWlKb3zeKXXU7FlEvN0H/tKMxk4mOwc4xc+yP0lXi2A nWmDdeYpd30R1O8LzhZyxT8Ccw4derSYPU2tvbbxiEzhm3v4pl5WKNTTubDyHYSyhgTH S/bQ== 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=eb3kyvhe6c5MORoZnYAsDDXwrKIUIIWYagBMYe+i3ds=; b=eKqXHJJJdsz/ZQQArBgsn7M9uZpxVa4piJs/rPLGdsfNM/28algYX+a5L3+KGM+M2D j7f4z3356UuDTchX58nPpZMOzOK3HaPXm/XNMSWXBYoRYIRqur8QTw4m8pBWT636nY2v RGzYnmQLtfC/rr0pGhsAtN1GTdWHxIthQHXdsbtG10HN7iOvXiaa29BNRiOWhS5MU36P 6CjFBH8IgAnF+u2mpRlw7t59Byr6tMRg+46SXVmxCD4ZVY9ZfyGExlpKLtDpdieI50ya RMAeil/IoRLbtcar9+uxqKP129LifUjn2cAGIXq1fG0RqX/iy8M1wqDulHFgD4ncPUmH hFpw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@oracle.com header.s=corp-2020-01-29 header.b=c34tYqLQ; 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 bo6si3615786edb.586.2020.05.21.13.41.49; Thu, 21 May 2020 13:42:24 -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=c34tYqLQ; 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 S1729518AbgEUUlP (ORCPT + 99 others); Thu, 21 May 2020 16:41:15 -0400 Received: from aserp2120.oracle.com ([141.146.126.78]:44408 "EHLO aserp2120.oracle.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728547AbgEUUlP (ORCPT ); Thu, 21 May 2020 16:41:15 -0400 Received: from pps.filterd (aserp2120.oracle.com [127.0.0.1]) by aserp2120.oracle.com (8.16.0.42/8.16.0.42) with SMTP id 04LKbpUN110222; Thu, 21 May 2020 20:40:59 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=eb3kyvhe6c5MORoZnYAsDDXwrKIUIIWYagBMYe+i3ds=; b=c34tYqLQw8DTeRvJXpu0WYGEPeXGHKBqnCO+cqmC0hDlKZlp7w2zwmkHHSUKlwWrxL/+ 32l9nNhTImdBcimEAWVp14OYfs/x2n26+w/dJAglxiLHcdSbcxOAp/yivglBM/0Cjali Jg/tmXnCnxdUW4L0GY5+8BIUImxeVFlQAsgAJ0kfe5I7Iu/1d2ndPkFGmrbTmFDQpgSA KRMJVxdSZUsF0fArXFG9t9gIuuQ4j97bJi1U/93eDGYLW4i2qaKHQflJnG2NUe+/u5Zz A42Z16vDKe9OEWcpdpOgsHeuIlO5j0OzE8KQTqy+BqmHZrHVkESnti+ZT6RghKTO2nnq Dw== Received: from aserp3020.oracle.com (aserp3020.oracle.com [141.146.126.70]) by aserp2120.oracle.com with ESMTP id 31284manav-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=FAIL); Thu, 21 May 2020 20:40:59 +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 04LKdEVf052749; Thu, 21 May 2020 20:40:59 GMT Received: from aserv0122.oracle.com (aserv0122.oracle.com [141.146.126.236]) by aserp3020.oracle.com with ESMTP id 312t3ca9s4-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Thu, 21 May 2020 20:40:59 +0000 Received: from abhmp0014.oracle.com (abhmp0014.oracle.com [141.146.116.20]) by aserv0122.oracle.com (8.14.4/8.14.4) with ESMTP id 04LKewvu018174; Thu, 21 May 2020 20:40:58 GMT Received: from localhost.localdomain (/98.229.125.203) by default (Oracle Beehive Gateway v4.0) with ESMTP ; Thu, 21 May 2020 13:40:58 -0700 From: Daniel Jordan To: Greg Kroah-Hartman , Sasha Levin Cc: Ben Hutchings , Herbert Xu , Steffen Klassert , stable@vger.kernel.org, linux-crypto@vger.kernel.org, Daniel Jordan Subject: [stable-4.19 3/3] padata: purge get_cpu and reorder_via_wq from padata_do_serial Date: Thu, 21 May 2020 16:40:51 -0400 Message-Id: <20200521204051.1952184-3-daniel.m.jordan@oracle.com> X-Mailer: git-send-email 2.26.2 In-Reply-To: <20200521204051.1952184-1-daniel.m.jordan@oracle.com> References: <20200521204051.1952184-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-2005210152 X-Proofpoint-Virus-Version: vendor=nai engine=6000 definitions=9628 signatures=668686 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 suspectscore=0 mlxscore=0 cotscore=-2147483648 impostorscore=0 malwarescore=0 mlxlogscore=999 lowpriorityscore=0 phishscore=0 spamscore=0 bulkscore=0 adultscore=0 priorityscore=1501 clxscore=1015 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2004280000 definitions=main-2005210152 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 e9b8d517fd4b..93e4fb2d9f2e 100644 --- a/kernel/padata.c +++ b/kernel/padata.c @@ -324,24 +324,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); @@ -355,8 +340,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