Received: by 2002:a05:6902:102b:0:0:0:0 with SMTP id x11csp833956ybt; Wed, 8 Jul 2020 12:54:06 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzpXAReL7K1/TZeLUUKyh1WWVTxtLKJhrkM445C4a9fjjIY4wDHhNIdDtiMxIFRaFihwp4N X-Received: by 2002:a17:906:f2d6:: with SMTP id gz22mr52456317ejb.407.1594238046522; Wed, 08 Jul 2020 12:54:06 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1594238046; cv=none; d=google.com; s=arc-20160816; b=qCjWTVL30xz+eXZjQ0ll2F4OavlnY6HwApW+kMeF1TLvfWgqgyQyjoW9EKhrpT5eKn YE4jaxbu2lGp6af5qgIiB/a9bfmOCCxk96OCU95SZXopFZPaei2q14vXJPFHkeiqYpmN tSTuiUISLw7ZXesPaCkCOderVLYM7TY03nCm9dINPiWDYuiQN236ssfER0qBYcrW9a7a u1BjMYN1BotRU+6TfZ4FcKBoNSuj7fqS3boaHKL2sAU9KhQDJnREBltnlSeY9smwVJq1 ACSyx+qlqNrwaV8G1ho9LgXwW8g+QNVQleGtG9+836ERyREG+vvy4RJCfIthxV4xEy5t /J5g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=l5kP04TQx9CT6XBndJoPCQt97j3az16WSIoo49ut7H0=; b=1CF0Tb8bXtGrp9m6hMghN4yJqSfAn7sWv+7j1mtb/9u4oI5MHE/S6V3ZiEeqKugFcx oiWlZQcl2I81FUal6D7Y/r0um0j2adv4BNcSXeXHfaKRNbErBGAhLkgbA//l7KCSqjRy /Ua3g5d1a90nP7YBE0lhhSceRUl5KtSfTyDJtNlsQmNlCp48m3vMJgbbmcCvl8+6J1eQ XIA+VJc3T+MuwIGKRuRqlK1qw43j1AQdxSRfnEWRRo2BP17X3+opDPSx5Jfhy3+FxfAf nqcwviTby+AIbS8WjkIC1qDecPJWi71l+EvW2r8xl2eh7NzvJedF0xxUvzDpcEtDFDnZ 9BFw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@oracle.com header.s=corp-2020-01-29 header.b="Ri/wpHrN"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-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 j9si587041edn.453.2020.07.08.12.53.43; Wed, 08 Jul 2020 12:54:06 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-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="Ri/wpHrN"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-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 S1726263AbgGHTx1 (ORCPT + 99 others); Wed, 8 Jul 2020 15:53:27 -0400 Received: from aserp2120.oracle.com ([141.146.126.78]:51392 "EHLO aserp2120.oracle.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725446AbgGHTx0 (ORCPT ); Wed, 8 Jul 2020 15:53:26 -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 068Jkc4b014971; Wed, 8 Jul 2020 19:53:15 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oracle.com; h=date : from : to : cc : subject : message-id : references : mime-version : content-type : in-reply-to; s=corp-2020-01-29; bh=l5kP04TQx9CT6XBndJoPCQt97j3az16WSIoo49ut7H0=; b=Ri/wpHrNAp/87a8ITffVtp7EjnPYPzVXnf++JO8YDZ4h3h6A24ObFmeMUy2urj8JP860 WmPB9TfZdQNosk77pShY+mRzraYfQnC2mzkkX/cREpHlmWIkKqf/Tr7xjV8MRyWoj+Z2 wLpjbBtMuWD3cCt9wGtAHF2heY6wrDRZseIUIHcPlX7vJe5PzBgYgN+7YEZ1S7SKoeOJ gp4IkGEbBdRa/3g7f7TB79rpRqzIHVNKQ61BW10/nglfUQup6PUM3HyD+eBt46D9wUwc GoX22Ro7BQsFkpWlRO34sK2EdnbFK57XPPIq+iDQXmZaq70ldIidQxYTlN3zix8c4Se3 pw== Received: from aserp3020.oracle.com (aserp3020.oracle.com [141.146.126.70]) by aserp2120.oracle.com with ESMTP id 325k368j0e-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=FAIL); Wed, 08 Jul 2020 19:53:15 +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 068JnHUe167225; Wed, 8 Jul 2020 19:51:14 GMT Received: from userv0122.oracle.com (userv0122.oracle.com [156.151.31.75]) by aserp3020.oracle.com with ESMTP id 325k3efsre-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Wed, 08 Jul 2020 19:51:14 +0000 Received: from abhmp0003.oracle.com (abhmp0003.oracle.com [141.146.116.9]) by userv0122.oracle.com (8.14.4/8.14.4) with ESMTP id 068JpClo018936; Wed, 8 Jul 2020 19:51:12 GMT Received: from ca-dmjordan1.us.oracle.com (/10.211.9.48) by default (Oracle Beehive Gateway v4.0) with ESMTP ; Wed, 08 Jul 2020 12:51:12 -0700 Date: Wed, 8 Jul 2020 15:51:40 -0400 From: Daniel Jordan To: Nico Pache Cc: linux-kernel@vger.kernel.org, linux-crypto@vger.kernel.org, steffen.klassert@secunet.com, daniel.m.jordan@oracle.com Subject: Re: [PATCH v2] Remove __init from padata_do_multithreaded and padata_mt_helper. Message-ID: <20200708195140.hioiltf7pwppz6j7@ca-dmjordan1.us.oracle.com> References: <20200702155548.14690-1-npache@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200702155548.14690-1-npache@redhat.com> User-Agent: NeoMutt/20180716 X-Proofpoint-Virus-Version: vendor=nai engine=6000 definitions=9676 signatures=668680 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 spamscore=0 mlxscore=0 mlxlogscore=999 phishscore=0 adultscore=0 suspectscore=0 malwarescore=0 bulkscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2006250000 definitions=main-2007080119 X-Proofpoint-Virus-Version: vendor=nai engine=6000 definitions=9676 signatures=668680 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 bulkscore=0 impostorscore=0 mlxscore=0 adultscore=0 spamscore=0 mlxlogscore=999 malwarescore=0 priorityscore=1501 suspectscore=0 lowpriorityscore=0 clxscore=1011 phishscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2006250000 definitions=main-2007080119 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org (I was away for a while) On Thu, Jul 02, 2020 at 11:55:48AM -0400, Nico Pache wrote: > Allow padata_do_multithreaded function to be called after bootstrap. The functions are __init because they're currently only needed during boot, and using __init allows the text to be freed once it's over, saving some memory. So this change, in isolation, doesn't make sense. If there were an enhancement you were thinking of making, this patch could then be bundled with it so the change is made only when it's used. However, there's still work that needs to be merged before padata_do_multithreaded can be called after boot. See the parts about priority adjustments (MAX_NICE/renicing) and concurrency limits in this branch https://oss.oracle.com/git/gitweb.cgi?p=linux-dmjordan.git;a=shortlog;h=refs/heads/padata-mt-wip-v0.5 and the ktask discussions from linux-mm/lkml where concerns about these issues were raised. I plan to post these parts fairly soon and can include you if you want.