Commit 1df4bd8
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/[email protected]
Signed-off-by: Oleg Nesterov <[email protected]>
Cc: "Eric W. Biederman" <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>1 parent 2320222 commit 1df4bd8
1 file changed
+14
-6
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2973 | 2973 | | |
2974 | 2974 | | |
2975 | 2975 | | |
2976 | | - | |
2977 | 2976 | | |
2978 | 2977 | | |
2979 | 2978 | | |
| |||
2985 | 2984 | | |
2986 | 2985 | | |
2987 | 2986 | | |
2988 | | - | |
| 2987 | + | |
2989 | 2988 | | |
2990 | 2989 | | |
| 2990 | + | |
| 2991 | + | |
| 2992 | + | |
| 2993 | + | |
| 2994 | + | |
| 2995 | + | |
| 2996 | + | |
2991 | 2997 | | |
2992 | | - | |
2993 | | - | |
2994 | | - | |
| 2998 | + | |
| 2999 | + | |
| 3000 | + | |
2995 | 3001 | | |
2996 | | - | |
| 3002 | + | |
| 3003 | + | |
| 3004 | + | |
2997 | 3005 | | |
2998 | 3006 | | |
2999 | 3007 | | |
| |||
0 commit comments