> From: Thomas Hellström <[email protected]> > > dmem_cgroup_try_charge() returns -EAGAIN when the cgroup limit is > hit and the charge fails. TTM has no concept of -EAGAIN from resource > allocation; -ENOSPC is the canonical error meaning "no space, try > eviction". Convert at the source in ttm_resource_alloc() so no caller > needs to handle an unexpected error code, and clean up the now-redundant > -EAGAIN check in ttm_bo_alloc_resource(). > > Without this, -EAGAIN escaping ttm_resource_alloc() during an eviction > walk causes the walk to terminate early instead of continuing to the > next candidate. > > Cc: Friedrich Vock <[email protected]> > Cc: Maarten Lankhorst <[email protected]> > Cc: Tejun Heo <[email protected]> > Cc: Maxime Ripard <[email protected]> > Cc: Christian Koenig <[email protected]> > Cc: [email protected] > Cc: <[email protected]> # v6.14+ > Fixes: 2b624a2c1865 ("drm/ttm: Handle cgroup based eviction in TTM") > Assisted-by: GitHub_Copilot:claude-sonnet-4.6 > Signed-off-by: Thomas Hellström <[email protected]> > Reviewed-by: Maarten Lankhorst <[email protected]> > Link: > https://patch.msgid.link/[email protected] > (cherry picked from commit 591711b32681a04b57d00c2a404658f8419a081c) > > https://virtuozzo.atlassian.net/browse/VSTOR-152813 > Signed-off-by: Mirian Shilakadze <[email protected]>
Sashiko has reviewed this patch and found no issues. It looks great! -- Sashiko AI review · https://sashiko.vzint.dev/#/patchset/[email protected]?part=5 _______________________________________________ Devel mailing list [email protected] https://lists.openvz.org/mailman/listinfo/devel
