commit | 9c51ba1db37cab780f38b2210913959f22d7b830 | [log] [tgz] |
---|---|---|
author | Thomas Hellstrom <thellstrom@vmware.com> | Wed Dec 02 18:33:46 2009 +0100 |
committer | Dave Airlie <airlied@redhat.com> | Wed Dec 16 15:34:40 2009 +1000 |
tree | 78136ca9c2fc00cd0550703fe07ae7ada55c11b9 | |
parent | aaa207369436d04bb85382ddbb688a5b9461fd21 [diff] |
drm/ttm: Fix potential ttm_mem_evict_first races. 1) The function was previously called with a potentially empty LRU list which would have lead to an OOPS or servere corruption. 2) In rare cases, after reservation has succeeded, another process may already have evicted it or even pinned it. We must revalidate the buffer status after releasing the lru lock. Signed-off-by: Thomas Hellstrom <thellstrom@vmware.com> Signed-off-by: Dave Airlie <airlied@redhat.com>