drm/ttm: convert rb_tree back to tree(3) and fix a few races
authorJoris Giovannangeli <joris@giovannangeli.fr>
Thu, 3 Jul 2014 17:58:20 +0000 (19:58 +0200)
committerJoris Giovannangeli <joris@giovannangeli.fr>
Thu, 3 Jul 2014 17:58:20 +0000 (19:58 +0200)
commit9e49fad73bb40c7d38a5a91d46def629486a75e8
tree7504520279ff65a114687af2ab04878435105c09
parent2887e53433d1376ef6ff6e9453a0a9c2548648e0
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.
sys/dev/drm/drm/Makefile
sys/dev/drm/include/drm/ttm/ttm_bo_api.h
sys/dev/drm/include/drm/ttm/ttm_bo_driver.h
sys/dev/drm/include/linux/rbtree.h [deleted file]
sys/dev/drm/linux_compat.c [deleted file]
sys/dev/drm/ttm/ttm_bo.c
sys/dev/drm/ttm/ttm_bo_vm.c
sys/dev/drm/ttm/ttm_object.c