summaryrefslogtreecommitdiffstats
path: root/fs/binfmt_misc.c
diff options
context:
space:
mode:
authorChris Wilson <chris@chris-wilson.co.uk>2018-09-03 09:33:36 +0100
committerChris Wilson <chris@chris-wilson.co.uk>2018-09-03 12:02:04 +0100
commite0ff7a7cddeff8ab2445f9d33f2416f8f89f9bca (patch)
tree7d84162c185d09b0526e4b833b714ee12cf1a1fb /fs/binfmt_misc.c
parentfddcd00a49e9122a3579247151e9cb3ce5a1a36e (diff)
downloadtalos-op-linux-e0ff7a7cddeff8ab2445f9d33f2416f8f89f9bca.tar.gz
talos-op-linux-e0ff7a7cddeff8ab2445f9d33f2416f8f89f9bca.zip
drm/i915: Early rejection of buffer allocations larger than RAM
We currently try to pin and allocate the whole buffer at a time. If that object is larger than RAM, we will try to pin the whole of physical memory, force the machine into oom, and then still fail the allocation. If the request is obviously too large, error out early. We opt to do this in the backend to make it easy to use alternate paths that do not require the entire object pinned, or may easily handle proxy objects that are larger than physical memory. Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk> Reviewed-by: Joonas Lahtinen <joonas.lahtinen@linux.intel.com> Link: https://patchwork.freedesktop.org/patch/msgid/20180903083337.13134-4-chris@chris-wilson.co.uk
Diffstat (limited to 'fs/binfmt_misc.c')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud