Patch "s390/pai_crypto: remove per-cpu variable assignement in event initialization" has been added to the 6.1-stable tree

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



This is a note to let you know that I've just added the patch titled

    s390/pai_crypto: remove per-cpu variable assignement in event initialization

to the 6.1-stable tree which can be found at:
    http://www.kernel.org/git/?p=linux/kernel/git/stable/stable-queue.git;a=summary

The filename of the patch is:
     s390-pai_crypto-remove-per-cpu-variable-assignement-.patch
and it can be found in the queue-6.1 subdirectory.

If you, or anyone else, feels it should not be added to the stable tree,
please let <stable@xxxxxxxxxxxxxxx> know about it.



commit e5bbc512d2fc789681c85eb201df45b763749612
Author: Thomas Richter <tmricht@xxxxxxxxxxxxx>
Date:   Wed Oct 18 11:53:52 2023 +0200

    s390/pai_crypto: remove per-cpu variable assignement in event initialization
    
    [ Upstream commit aecd5a37b5ef4de4f6402dc079672e4243cc4c13 ]
    
    Function paicrypt_event_init() initializes the PMU device driver
    specific details for an event. It is called once per event creation.
    The function paicrypt_event_init() is not necessarily executed on
    that CPU the event will be used for.
    When an event is activated, function paicrypt_start() is used to
    start the event on that CPU.
    The per CPU data structure struct paicrypt_map has a pointer to
    the event which is active for a particular CPU. This pointer is
    set in function paicrypt_start() to point to the currently installed
    event. There is no need to also set this pointer in function
    paicrypt_event_init() where is might be assigned to the wrong CPU.
    Therefore remove this assignment in paicrypt_event_init().
    
    Acked-by: Sumanth Korikkar <sumanthk@xxxxxxxxxxxxx>
    Signed-off-by: Thomas Richter <tmricht@xxxxxxxxxxxxx>
    Signed-off-by: Vasily Gorbik <gor@xxxxxxxxxxxxx>
    Stable-dep-of: e9f3af02f639 ("s390/pai: fix sampling event removal for PMU device driver")
    Signed-off-by: Sasha Levin <sashal@xxxxxxxxxx>

diff --git a/arch/s390/kernel/perf_pai_crypto.c b/arch/s390/kernel/perf_pai_crypto.c
index 7eb138b07e7be..4b773653a951b 100644
--- a/arch/s390/kernel/perf_pai_crypto.c
+++ b/arch/s390/kernel/perf_pai_crypto.c
@@ -213,7 +213,6 @@ static int paicrypt_event_init(struct perf_event *event)
 	 * are active at the same time.
 	 */
 	event->hw.last_tag = 0;
-	cpump->event = event;
 	event->destroy = paicrypt_event_destroy;
 
 	if (a->sample_period) {




[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux