diff options
author | Peter Zijlstra <peterz@infradead.org> | 2019-08-01 13:13:51 +0200 |
---|---|---|
committer | Herbert Xu <herbert@gondor.apana.org.au> | 2019-08-09 15:11:52 +1000 |
commit | a3c1bdb28648a3a461ca8e7ba44d8e35f7bc6780 (patch) | |
tree | 96785a8a596cd75129879f76a99156ebb5142e67 | |
parent | 28769e25edecd083e85a20e315861489f21b879a (diff) | |
download | linux-crypto-a3c1bdb28648a3a461ca8e7ba44d8e35f7bc6780.tar.gz linux-crypto-a3c1bdb28648a3a461ca8e7ba44d8e35f7bc6780.zip |
crypto: engine - Reduce default RT priority
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 <herbert@gondor.apana.org.au>
Cc: "David S. Miller" <davem@davemloft.net>
Cc: linux-crypto@vger.kernel.org
Cc: linux-kernel@vger.kernel.org
Cc: Thomas Gleixner <tglx@linutronix.de>
Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
-rw-r--r-- | crypto/crypto_engine.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/crypto/crypto_engine.c b/crypto/crypto_engine.c index d7502ec3..055d1797 100644 --- 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) |