git: drm/ttm: convert rb_tree back to tree(3) and fix a few races

Joris Giovannangeli joris at crater.dragonflybsd.org
Thu Jul 3 11:00:52 PDT 2014


commit 9e49fad73bb40c7d38a5a91d46def629486a75e8
Author: Joris Giovannangeli <joris at giovannangeli.fr>
Date:   Thu Jul 3 19:58:20 2014 +0200

    drm/ttm: convert rb_tree back to tree(3) and fix a few races
    
     * remove the linux compat rbtree for now and use tree(3)
    
     * change a few locks not converted from freebsd porting
    
     * check that the refcount is still 0 before destroying the object after
       acquiring the lock, because we might have raced another ref.

Summary of changes:
 sys/dev/drm/drm/Makefile                    |   1 -
 sys/dev/drm/include/drm/ttm/ttm_bo_api.h    |   3 +-
 sys/dev/drm/include/drm/ttm/ttm_bo_driver.h |  11 ++-
 sys/dev/drm/include/linux/rbtree.h          | 110 ----------------------------
 sys/dev/drm/linux_compat.c                  |  52 -------------
 sys/dev/drm/ttm/ttm_bo.c                    |  51 ++++++-------
 sys/dev/drm/ttm/ttm_bo_vm.c                 |  32 ++++++--
 sys/dev/drm/ttm/ttm_object.c                |   4 +
 8 files changed, 61 insertions(+), 203 deletions(-)
 delete mode 100644 sys/dev/drm/include/linux/rbtree.h
 delete mode 100644 sys/dev/drm/linux_compat.c

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/9e49fad73bb40c7d38a5a91d46def629486a75e8


-- 
DragonFly BSD source repository


More information about the Commits mailing list