summaryrefslogtreecommitdiffstats
path: root/drivers/net/eql.c
diff options
context:
space:
mode:
authorChris Wilson <chris@chris-wilson.co.uk>2011-03-14 15:11:24 +0000
committerChris Wilson <chris@chris-wilson.co.uk>2011-03-23 09:17:01 +0000
commitd4aeee776017b6da6dcd12f453cd82a3c951a0dc (patch)
tree987afd679a2c2352856744404173b02569c713f7 /drivers/net/eql.c
parented0291fd16f6349ef43d3f25a4626c2f7baf568b (diff)
downloadblackbird-op-linux-d4aeee776017b6da6dcd12f453cd82a3c951a0dc.tar.gz
blackbird-op-linux-d4aeee776017b6da6dcd12f453cd82a3c951a0dc.zip
drm/i915: Disable pagefaults along execbuffer relocation fast path
Along the fast path for relocation handling, we attempt to copy directly from the user data structures whilst holding our mutex. This causes lockdep to warn about circular lock dependencies if we need to pagefault the user pages. [Since when handling a page fault on a mmapped bo, we need to acquire the struct mutex whilst already holding the mm semaphore, it is then verboten to acquire the mm semaphore when already holding the struct mutex. The likelihood of the user passing in the relocations contained in a GTT mmaped bo is low, but conceivable for extreme pathology.] In order to force the mm to return EFAULT rather than handle the pagefault, we therefore need to disable pagefaults across the relocation fast path. Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk> Cc: stable@kernel.org Reviewed-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Diffstat (limited to 'drivers/net/eql.c')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud