kernel - Fix i915 deadlock
commite24b12cd969a621c8618dbf653259c80ddd61670
authorMatthew Dillon <dillon@apollo.backplane.com>
Sun, 23 Apr 2017 00:30:54 +0000 (22 17:30 -0700)
committerMatthew Dillon <dillon@apollo.backplane.com>
Sun, 23 Apr 2017 00:30:54 +0000 (22 17:30 -0700)
treefca38bee76d5659246a3100fed66f2b436c54b4e
parent58a8d34fd02c7c5146fa3d38dc7f5899adbed4b6
kernel - Fix i915 deadlock

* (Attempt to) fix a deadlock in the i915 code.  The device lock retry
  code does not release the PG_BUSY on the passed-in placeholder page,
  so the fact that the lock is obtained non-blocking is irrelevant.

  Try to fix this by immediately releasing the placeholder page.  The
  code already checks for an insertion race later on.
sys/dev/drm/i915/i915_gem.c
sys/vm/vm_fault.c