Commit e379856
drm/panthor: Replace sleep locks with spinlocks in fdinfo path
Commit 0590c94 ("drm/panthor: Fix race condition when gathering fdinfo
group samples") introduced an xarray lock to deal with potential
use-after-free errors when accessing groups fdinfo figures. However, this
toggles the kernel's atomic context status, so the next nested mutex lock
will raise a warning when the kernel is compiled with mutex debug options:
CONFIG_DEBUG_RT_MUTEXES=y
CONFIG_DEBUG_MUTEXES=y
Replace Panthor's group fdinfo data mutex with a guarded spinlock.
Signed-off-by: Adrián Larumbe <[email protected]>
Fixes: 0590c94 ("drm/panthor: Fix race condition when gathering fdinfo group samples")
Reviewed-by: Liviu Dudau <[email protected]>
Reviewed-by: Boris Brezillon <[email protected]>
Reviewed-by: Steven Price <[email protected]>
Signed-off-by: Steven Price <[email protected]>
Link: https://patchwork.freedesktop.org/patch/msgid/[email protected]1 parent e4c0fd3 commit e379856
1 file changed
+12
-14
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
9 | 9 | | |
10 | 10 | | |
11 | 11 | | |
| 12 | + | |
12 | 13 | | |
13 | 14 | | |
14 | 15 | | |
| |||
631 | 632 | | |
632 | 633 | | |
633 | 634 | | |
634 | | - | |
635 | | - | |
| 635 | + | |
| 636 | + | |
636 | 637 | | |
637 | | - | |
| 638 | + | |
638 | 639 | | |
639 | 640 | | |
640 | 641 | | |
| |||
910 | 911 | | |
911 | 912 | | |
912 | 913 | | |
913 | | - | |
914 | | - | |
915 | 914 | | |
916 | 915 | | |
917 | 916 | | |
| |||
2861 | 2860 | | |
2862 | 2861 | | |
2863 | 2862 | | |
2864 | | - | |
2865 | | - | |
2866 | | - | |
2867 | | - | |
2868 | | - | |
2869 | | - | |
| 2863 | + | |
| 2864 | + | |
| 2865 | + | |
| 2866 | + | |
| 2867 | + | |
| 2868 | + | |
2870 | 2869 | | |
2871 | 2870 | | |
2872 | 2871 | | |
| |||
2880 | 2879 | | |
2881 | 2880 | | |
2882 | 2881 | | |
2883 | | - | |
| 2882 | + | |
2884 | 2883 | | |
2885 | 2884 | | |
2886 | 2885 | | |
2887 | 2886 | | |
2888 | | - | |
2889 | 2887 | | |
2890 | 2888 | | |
2891 | 2889 | | |
| |||
3537 | 3535 | | |
3538 | 3536 | | |
3539 | 3537 | | |
3540 | | - | |
| 3538 | + | |
3541 | 3539 | | |
3542 | 3540 | | |
3543 | 3541 | | |
| |||
0 commit comments