Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp4093539ybi; Fri, 19 Jul 2019 14:52:12 -0700 (PDT) X-Google-Smtp-Source: APXvYqwQPTi6Ys9+Q1SyxpqrkjgJM0rzpHgMluFy+GTddS2r8pf5IhtHzA4tNp4dYG9jecjDfXOO X-Received: by 2002:a63:3fc9:: with SMTP id m192mr57423780pga.429.1563573132260; Fri, 19 Jul 2019 14:52:12 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1563573132; cv=none; d=google.com; s=arc-20160816; b=gk6h5xjXf1OlTNP6lmjSy4Pf9jTZGxsteTsjxtc+1n4CsEsnfXypJQZb1HYp8vnEAG 7WSm/pJTPg/TQ6qug6USl2tLdfmE0koETYWTtJLdwSU4kAr3mbmCGZk7vfeuFmgsUSCu 7TQnpikDhB12kzO9ILvX0Kt68sY1gu58isu3EuaY1AN/7VKgRJNNQcGOZgPIP0QWH+sa nmNlm+LbfY1/uO5KAhGJti3cqOvqoDyqYYSYP+YiRAtjtamy2RS733GWkPVQCW57Lm/u u8tfrQW9PlOq4I2MoToUcwVUZ+9t5BjQ/5R+KTiSASgbl3UsbSzA052tLuuhjpqkXGdR lQrQ== 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=2FCNzgYyE1Ms+v1323Sh5EjTYdtuk5UjqOn7+qCfzOQ=; b=J51gbopJxHbidsIkbStiPsq61b+tss9oPsSFYo77jRJGYounfhOQc3OVl9IHRDwzas dg7zapnX/AYHvvZUUlRx9sU0AhBHKHePN5wC0ZM6vtMdA4zPrPGOU6orkBqobWLOFcym EVhYrn1ntaqTiwrl0j47KPMpU/nfZ3Bd51ZyCpPuN1goMhVr51UQPmcm+cdPaNlOsG1M +Mn/jU1KsBnp/2nqQHsiHPfk+f7sFgmT15kkwd4qYgqr91IIlxfqszpRRWKcpRjsOOyY cYrUgwCxhghzeY8NRZ5XnqC0gLTp8Fds/AaqrbiIRarc3bj9Qb381evFnzMLSDTC8BV8 PCKg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@oracle.com header.s=corp-2018-07-02 header.b="isDKc/M9"; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=oracle.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id p3si2074708pjr.18.2019.07.19.14.51.50; Fri, 19 Jul 2019 14:52:12 -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; dkim=pass header.i=@oracle.com header.s=corp-2018-07-02 header.b="isDKc/M9"; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=oracle.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1732375AbfGSTFE (ORCPT + 99 others); Fri, 19 Jul 2019 15:05:04 -0400 Received: from userp2130.oracle.com ([156.151.31.86]:46180 "EHLO userp2130.oracle.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728164AbfGSTFD (ORCPT ); Fri, 19 Jul 2019 15:05:03 -0400 Received: from pps.filterd (userp2130.oracle.com [127.0.0.1]) by userp2130.oracle.com (8.16.0.27/8.16.0.27) with SMTP id x6JJ4c0e008875; Fri, 19 Jul 2019 19:04:53 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-2018-07-02; bh=2FCNzgYyE1Ms+v1323Sh5EjTYdtuk5UjqOn7+qCfzOQ=; b=isDKc/M9rDDwIi9usiLBTjqe9oE9J7i87Tz+7xcaGCoYJtGfl02SLeVO8QDfF6sSYFJo bhdQD6HbB0cDGWPsy2plEDBgjZrB2M5pMSFhttbUkVXZcC07L1PRUlUA+KNHI2lwGZb4 iTOaZX4cWh4QALOZTl5A//qxjwR4UGzfKFkJyuKdYugo4YRIOLPvP+q5ZcVta1upyFDv 02lh4pMqxvThZAutjhNnuuXTluRirtn4zTGmKBaPWKt4y9r5/JuAFvvS5Ni8zSErkrRR BSzeA+RDnrVbxTCQ1EFiXJ+vACEhM0srXU+RE/iAQVhPrXCzVxWqYi/LaZFa3M7akDKt RA== Received: from aserp3030.oracle.com (aserp3030.oracle.com [141.146.126.71]) by userp2130.oracle.com with ESMTP id 2tq6qu8d9u-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Fri, 19 Jul 2019 19:04:53 +0000 Received: from pps.filterd (aserp3030.oracle.com [127.0.0.1]) by aserp3030.oracle.com (8.16.0.27/8.16.0.27) with SMTP id x6JJ2vDt178475; Fri, 19 Jul 2019 19:04:52 GMT Received: from userv0121.oracle.com (userv0121.oracle.com [156.151.31.72]) by aserp3030.oracle.com with ESMTP id 2ttc8gax3y-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Fri, 19 Jul 2019 19:04:52 +0000 Received: from abhmp0015.oracle.com (abhmp0015.oracle.com [141.146.116.21]) by userv0121.oracle.com (8.14.4/8.13.8) with ESMTP id x6JJ4oCY020764; Fri, 19 Jul 2019 19:04:50 GMT Received: from localhost.localdomain (/73.60.114.248) by default (Oracle Beehive Gateway v4.0) with ESMTP ; Fri, 19 Jul 2019 19:04:49 +0000 From: Daniel Jordan To: Herbert Xu , Steffen Klassert Cc: Daniel Jordan , linux-crypto@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH] padata: purge get_cpu and reorder_via_wq from padata_do_serial Date: Fri, 19 Jul 2019 15:04:44 -0400 Message-Id: <20190719190444.15143-1-daniel.m.jordan@oracle.com> X-Mailer: git-send-email 2.22.0 In-Reply-To: <20190719145546.hkpe77mevab3gzwq@gondor.apana.org.au> References: <20190719145546.hkpe77mevab3gzwq@gondor.apana.org.au> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Proofpoint-Virus-Version: vendor=nai engine=6000 definitions=9323 signatures=668688 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 suspectscore=0 malwarescore=0 phishscore=0 bulkscore=0 spamscore=0 mlxscore=0 mlxlogscore=999 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1810050000 definitions=main-1907190203 X-Proofpoint-Virus-Version: vendor=nai engine=6000 definitions=9323 signatures=668688 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 priorityscore=1501 malwarescore=0 suspectscore=0 phishscore=0 bulkscore=0 spamscore=0 clxscore=1015 lowpriorityscore=0 mlxscore=0 impostorscore=0 mlxlogscore=999 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1810050000 definitions=main-1907190204 Sender: linux-crypto-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-crypto@vger.kernel.org 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 --- kernel/padata.c | 23 +++-------------------- 1 file changed, 3 insertions(+), 20 deletions(-) diff --git a/kernel/padata.c b/kernel/padata.c index fbafca18597f..7372fb45eeeb 100644 --- a/kernel/padata.c +++ b/kernel/padata.c @@ -316,24 +316,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); @@ -347,8 +332,6 @@ void padata_do_serial(struct padata_priv *padata) */ smp_mb__after_atomic(); - put_cpu(); - padata_reorder(pd); } EXPORT_SYMBOL(padata_do_serial); -- 2.22.0