]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit050b4f32bc0885dfccc930d40f4a8f7679578157
treee088817fd6239fe280d53fdb1907864bdf69ca7e
parent5f4b6060ade66292115c4cb2342ace5c82c0dfab
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