diff options
author | Boris Brezillon <[email protected]> | 2019-11-29 14:59:02 +0100 |
---|---|---|
committer | Rob Herring <[email protected]> | 2019-12-06 11:05:52 -0600 |
commit | 70cc77952efebf6722d483cb83cfb563ac9768db (patch) | |
tree | 168d647aafe7a6c41b948ce3829ad68061a64148 /lib/mpi/mpiutil.c | |
parent | 22bd4df9dadf46f56f2eb16859439a7a600d106a (diff) |
drm/panfrost: Fix a race in panfrost_ioctl_madvise()
If 2 threads change the MADVISE property of the same BO in parallel we
might end up with an shmem->madv value that's inconsistent with the
presence of the BO in the shrinker list.
The easiest solution to fix that is to protect the
drm_gem_shmem_madvise() call with the shrinker lock.
Fixes: 013b65101315 ("drm/panfrost: Add madvise and shrinker support")
Cc: <[email protected]>
Signed-off-by: Boris Brezillon <[email protected]>
Reviewed-by: Steven Price <[email protected]>
Acked-by: Alyssa Rosenzweig <[email protected]>
Signed-off-by: Rob Herring <[email protected]>
Link: https://patchwork.freedesktop.org/patch/msgid/[email protected]
Diffstat (limited to 'lib/mpi/mpiutil.c')
0 files changed, 0 insertions, 0 deletions