drm/i915: Fix lock order reversal in shmem pwrite path.
authorEric Anholt <eric@anholt.net>
Mon, 9 Mar 2009 20:42:30 +0000 (13:42 -0700)
committerEric Anholt <eric@anholt.net>
Fri, 27 Mar 2009 21:47:13 +0000 (14:47 -0700)
commit40123c1f8dd920dcff7a42cde5b351d7d0b0422e
treee088817fd6239fe280d53fdb1907864bdf69ca7e
parent856fa1988ea483fc2dab84a16681dcfde821b740
drm/i915: Fix lock order reversal in shmem pwrite path.

Like the GTT pwrite path fix, this uses an optimistic path and a
fallback to get_user_pages.  Note that this means we have to stop using
vfs_write and roll it ourselves.

Signed-off-by: Eric Anholt <eric@anholt.net>
Reviewed-by: Jesse Barnes <jbarnes@virtuousgeek.org>
drivers/gpu/drm/i915/i915_gem.c