diff options
author | Chris Wilson <[email protected]> | 2017-12-12 18:06:51 +0000 |
---|---|---|
committer | Chris Wilson <[email protected]> | 2017-12-13 13:17:44 +0000 |
commit | 2abe2f844645402e5d47012a04839d1c5cbffd0d (patch) | |
tree | 5d36295e28ae863e1e6cd3a014cb953d971a3fb3 /net/unix/sysctl_net_unix.c | |
parent | e30a7581bfc2d5619fed03ec7321c9e4ffb7e36f (diff) |
drm/i915: Allow fence allocations to fail
If a fence allocation fails in a blocking context, we will sleep on the
fence as a last resort. We can therefore allow ourselves to fail and
sleep on the fence instead of triggering a system-wide oom. This allows
us to throttle malicious clients that are consuming lots of system
resources by capping the amount of memory used by fences.
Testcase: igt/gem_shrink/execbufX
Signed-off-by: Chris Wilson <[email protected]>
Cc: Joonas Lahtinen <[email protected]>
Reviewed-by: Joonas Lahtinen <[email protected]>
Link: https://patchwork.freedesktop.org/patch/msgid/[email protected]
Diffstat (limited to 'net/unix/sysctl_net_unix.c')
0 files changed, 0 insertions, 0 deletions