Commit 9c1fe3b
committed
do_io_accounting: use sig->stats_lock
JIRA: https://issues.redhat.com/browse/RHEL-105165
commit 1df4bd8
Author: Oleg Nesterov <oleg@redhat.com>
Date: Mon, 23 Oct 2023 17:34:05 +0200
do_io_accounting: use sig->stats_lock
Rather than lock_task_sighand(), sig->stats_lock was specifically designed
for this type of use.
This way the "if (whole)" branch runs lockless in the likely case.
Link: https://lkml.kernel.org/r/20231023153405.GA4639@redhat.com
Signed-off-by: Oleg Nesterov <oleg@redhat.com>
Cc: "Eric W. Biederman" <ebiederm@xmission.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Waiman Long <longman@redhat.com>1 parent 6eb7560 commit 9c1fe3b
1 file changed
+14
-6
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2949 | 2949 | | |
2950 | 2950 | | |
2951 | 2951 | | |
2952 | | - | |
2953 | 2952 | | |
2954 | 2953 | | |
2955 | 2954 | | |
| |||
2961 | 2960 | | |
2962 | 2961 | | |
2963 | 2962 | | |
2964 | | - | |
| 2963 | + | |
2965 | 2964 | | |
2966 | 2965 | | |
| 2966 | + | |
| 2967 | + | |
| 2968 | + | |
| 2969 | + | |
| 2970 | + | |
| 2971 | + | |
| 2972 | + | |
2967 | 2973 | | |
2968 | | - | |
2969 | | - | |
2970 | | - | |
| 2974 | + | |
| 2975 | + | |
| 2976 | + | |
2971 | 2977 | | |
2972 | | - | |
| 2978 | + | |
| 2979 | + | |
| 2980 | + | |
2973 | 2981 | | |
2974 | 2982 | | |
2975 | 2983 | | |
| |||
0 commit comments