* [PATCH RT 0/1] Linux v4.19.306-rt132-rc1
@ 2024-02-02 17:04 Daniel Wagner
2024-02-02 17:04 ` [PATCH] Revert "crypto: scompress - serialize RT percpu scratch buffer access with a local lock" Daniel Wagner
2024-02-05 8:21 ` [PATCH RT 0/1] Linux v4.19.306-rt132-rc1 Sebastian Andrzej Siewior
0 siblings, 2 replies; 3+ messages in thread
From: Daniel Wagner @ 2024-02-02 17:04 UTC (permalink / raw)
To: Sebastian Andrzej Siewior
Cc: linux-kernel, linux-rt-users, stable-rt, Steven Rostedt,
Thomas Gleixner, Tom Zanussi, Clark Williams, Daniel Wagner
Dear RT Folks,
This is the RT stable review cycle of patch 4.19.306-rt132-rc1.
I reverted one -rt specific commit to be able to merge the 4.19.306
release:
0cb152421350 ("crypto: scompress - serialize RT percpu scratch buffer access with a local lock")
because the stable backport
f8f261f9ade2 ("crypto: scompress - Use per-CPU struct instead multiple variables")
seems to make the downstream -rt fix unnecessary.
Please scream at me if I messed something up. Please test the patches
too.
The -rc release is also available on kernel.org
https://git.kernel.org/pub/scm/linux/kernel/git/rt/linux-stable-rt.git
on the v4.19-rt-next branch.
If all goes well, this patch will be converted to the next main
release on 2024-02-09.
Signing key fingerprint:
5BF6 7BC5 0826 72CA BB45 ACAE 587C 5ECA 5D0A 306C
All keys used for the above files and repositories can be found on the
following git repository:
git://git.kernel.org/pub/scm/docs/kernel/pgpkeys.git
Enjoy!
Daniel
^ permalink raw reply [flat|nested] 3+ messages in thread
* [PATCH] Revert "crypto: scompress - serialize RT percpu scratch buffer access with a local lock"
2024-02-02 17:04 [PATCH RT 0/1] Linux v4.19.306-rt132-rc1 Daniel Wagner
@ 2024-02-02 17:04 ` Daniel Wagner
2024-02-05 8:21 ` [PATCH RT 0/1] Linux v4.19.306-rt132-rc1 Sebastian Andrzej Siewior
1 sibling, 0 replies; 3+ messages in thread
From: Daniel Wagner @ 2024-02-02 17:04 UTC (permalink / raw)
To: Sebastian Andrzej Siewior
Cc: linux-kernel, linux-rt-users, stable-rt, Steven Rostedt,
Thomas Gleixner, Tom Zanussi, Clark Williams, Daniel Wagner
This reverts commit 0cb152421350004d4dcf3a4523d88c002d0a7973.
The stable backport f8f261f9ade2 ("crypto: scompress - Use per-CPU
struct instead multiple variables") replaces this downstream workaround.
Signed-off-by: Daniel Wagner <wagi@monom.org>
---
crypto/scompress.c | 6 ++----
1 file changed, 2 insertions(+), 4 deletions(-)
diff --git a/crypto/scompress.c b/crypto/scompress.c
index c2f0077e0801..968bbcf65c94 100644
--- a/crypto/scompress.c
+++ b/crypto/scompress.c
@@ -24,7 +24,6 @@
#include <linux/cryptouser.h>
#include <net/netlink.h>
#include <linux/scatterlist.h>
-#include <linux/locallock.h>
#include <crypto/scatterwalk.h>
#include <crypto/internal/acompress.h>
#include <crypto/internal/scompress.h>
@@ -35,7 +34,6 @@ static void * __percpu *scomp_src_scratches;
static void * __percpu *scomp_dst_scratches;
static int scomp_scratch_users;
static DEFINE_MUTEX(scomp_lock);
-static DEFINE_LOCAL_IRQ_LOCK(scomp_scratches_lock);
#ifdef CONFIG_NET
static int crypto_scomp_report(struct sk_buff *skb, struct crypto_alg *alg)
@@ -148,7 +146,7 @@ static int scomp_acomp_comp_decomp(struct acomp_req *req, int dir)
void **tfm_ctx = acomp_tfm_ctx(tfm);
struct crypto_scomp *scomp = *tfm_ctx;
void **ctx = acomp_request_ctx(req);
- const int cpu = local_lock_cpu(scomp_scratches_lock);
+ const int cpu = get_cpu();
u8 *scratch_src = *per_cpu_ptr(scomp_src_scratches, cpu);
u8 *scratch_dst = *per_cpu_ptr(scomp_dst_scratches, cpu);
int ret;
@@ -183,7 +181,7 @@ static int scomp_acomp_comp_decomp(struct acomp_req *req, int dir)
1);
}
out:
- local_unlock_cpu(scomp_scratches_lock);
+ put_cpu();
return ret;
}
--
2.43.0
^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: [PATCH RT 0/1] Linux v4.19.306-rt132-rc1
2024-02-02 17:04 [PATCH RT 0/1] Linux v4.19.306-rt132-rc1 Daniel Wagner
2024-02-02 17:04 ` [PATCH] Revert "crypto: scompress - serialize RT percpu scratch buffer access with a local lock" Daniel Wagner
@ 2024-02-05 8:21 ` Sebastian Andrzej Siewior
1 sibling, 0 replies; 3+ messages in thread
From: Sebastian Andrzej Siewior @ 2024-02-05 8:21 UTC (permalink / raw)
To: Daniel Wagner
Cc: linux-kernel, linux-rt-users, stable-rt, Steven Rostedt,
Thomas Gleixner, Tom Zanussi, Clark Williams
On 2024-02-02 18:04:56 [+0100], Daniel Wagner wrote:
> Dear RT Folks,
Hi,
> This is the RT stable review cycle of patch 4.19.306-rt132-rc1.
…
> Please scream at me if I messed something up. Please test the patches
> too.
Good.
> Enjoy!
> Daniel
Sebastian
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2024-02-05 8:21 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-02-02 17:04 [PATCH RT 0/1] Linux v4.19.306-rt132-rc1 Daniel Wagner
2024-02-02 17:04 ` [PATCH] Revert "crypto: scompress - serialize RT percpu scratch buffer access with a local lock" Daniel Wagner
2024-02-05 8:21 ` [PATCH RT 0/1] Linux v4.19.306-rt132-rc1 Sebastian Andrzej Siewior
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).