From patchwork Thu Aug 1 11:13:51 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Peter Zijlstra X-Patchwork-Id: 11070527 X-Patchwork-Delegate: herbert@gondor.apana.org.au Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id E9E5E746 for ; Thu, 1 Aug 2019 11:18:38 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id DBF5328563 for ; Thu, 1 Aug 2019 11:18:38 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id CFE682856B; Thu, 1 Aug 2019 11:18:38 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-7.7 required=2.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,MAILING_LIST_MULTI,RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 5F9C528563 for ; Thu, 1 Aug 2019 11:18:38 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727540AbfHALSc (ORCPT ); Thu, 1 Aug 2019 07:18:32 -0400 Received: from merlin.infradead.org ([205.233.59.134]:50880 "EHLO merlin.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730613AbfHALS0 (ORCPT ); Thu, 1 Aug 2019 07:18:26 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=merlin.20170209; h=Content-Type:MIME-Version:References: Subject:Cc:To:From:Date:Message-Id:Sender:Reply-To:Content-Transfer-Encoding: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:List-Id:List-Help: List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=VK3Hh07yOV3Yg1wZLHnP2R78PkXj5PY4cFA9iQ9nZOw=; b=B0AkX7V4h01FBmBVo2bJD4cvyP qKTW2bt/BcFI725B5ENvjzRj7mbzfQaGXdUt2TMvUnPesvmCRYKxIb1Hve84GgjRKYd79cIJdkS46 EV/POKHHmb/Fz+xgQtlp33iQ7CizTEwKbqRd5b93NX3S3KIbnMkCgJu3hWNmwZBUvR27x1HWYTTa7 WdiMQYIRWyXxTd9c/vNqj9+JbyyJYcF5/10rto5Flb/lOyJvnDJjvw+/Uk9EMKheKFzVxQjIipJwU XpCV98bnQsZuTfMfd/YqINhYooGw1jUZ8EJla3EA3laebU4aST6EZPGcHhEP7xzxoHDrKY0aXCEW3 NrzlHa7Q==; Received: from j217100.upc-j.chello.nl ([24.132.217.100] helo=hirez.programming.kicks-ass.net) by merlin.infradead.org with esmtpsa (Exim 4.92 #3 (Red Hat Linux)) id 1ht968-0005fb-G0; Thu, 01 Aug 2019 11:18:16 +0000 Received: by hirez.programming.kicks-ass.net (Postfix, from userid 0) id 85916202975E1; Thu, 1 Aug 2019 13:18:12 +0200 (CEST) Message-Id: <20190801111541.800409062@infradead.org> User-Agent: quilt/0.65 Date: Thu, 01 Aug 2019 13:13:51 +0200 From: Peter Zijlstra To: mingo@kernel.org Cc: linux-kernel@vger.kernel.org, peterz@infradead.org, Herbert Xu , "David S. Miller" , linux-crypto@vger.kernel.org, Thomas Gleixner Subject: [PATCH 3/5] crypto: Reduce default RT priority References: <20190801111348.530242235@infradead.org> MIME-Version: 1.0 Sender: linux-crypto-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-crypto@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP The crypto engine initializes its kworker thread to FIFO-99 (when requesting RT priority), reduce this to FIFO-50. FIFO-99 is the very highest priority available to SCHED_FIFO and it not a suitable default; it would indicate the crypto work is the most important work on the machine. Cc: Herbert Xu Cc: "David S. Miller" Cc: linux-crypto@vger.kernel.org Cc: linux-kernel@vger.kernel.org Cc: Thomas Gleixner Signed-off-by: Peter Zijlstra (Intel) --- crypto/crypto_engine.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- a/crypto/crypto_engine.c +++ b/crypto/crypto_engine.c @@ -425,7 +425,7 @@ EXPORT_SYMBOL_GPL(crypto_engine_stop); */ struct crypto_engine *crypto_engine_alloc_init(struct device *dev, bool rt) { - struct sched_param param = { .sched_priority = MAX_RT_PRIO - 1 }; + struct sched_param param = { .sched_priority = MAX_RT_PRIO / 2 }; struct crypto_engine *engine; if (!dev)