aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/amd/amdgpu/amdgpu_sync.c
diff options
context:
space:
mode:
authorNicolas Saenz Julienne <[email protected]>2021-08-25 10:54:15 +0000
committerTejun Heo <[email protected]>2021-08-25 16:51:51 +0000
commit9f72daf7edfa8f7e86ce8940d52266b5e931dcb0 (patch)
tree49bc69fcaf77100c04c256ddbece2120b87a6c2f /drivers/gpu/drm/amd/amdgpu/amdgpu_sync.c
parentcgroup/cpuset: Enable memory migration for cpuset v2 (diff)
downloadkernel-9f72daf7edfa8f7e86ce8940d52266b5e931dcb0.tar.gz
kernel-9f72daf7edfa8f7e86ce8940d52266b5e931dcb0.zip
cgroup/cpuset: Avoid memory migration when nodemasks match
With the introduction of ee9707e8593d ("cgroup/cpuset: Enable memory migration for cpuset v2") attaching a process to a different cgroup will trigger a memory migration regardless of whether it's really needed. Memory migration is an expensive operation, so bypass it if the nodemasks passed to cpuset_migrate_mm() are equal. Note that we're not only avoiding the migration work itself, but also a call to lru_cache_disable(), which triggers and flushes an LRU drain work on every online CPU. Signed-off-by: Nicolas Saenz Julienne <[email protected]> Signed-off-by: Tejun Heo <[email protected]>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_sync.c')
0 files changed, 0 insertions, 0 deletions