kernel-drm: remove ttm_bo_reserve for TTM_PL_SYNCCPU_OP_RELEASE ioctl.
authorFei Jiang <fei.jiang@intel.com>
Sun, 6 May 2012 15:27:07 +0000 (23:27 +0800)
committerbuildbot <buildbot@intel.com>
Tue, 8 May 2012 20:53:35 +0000 (13:53 -0700)
commit85a1f1a7a5cd135faac0f33036aa670ae37685a7
tree7c0480bd85d618b961a9cf416bbf18afebee648a
parent1372ede383eec585a55a9ecb5fbdc75bb3fad285
kernel-drm: remove ttm_bo_reserve for TTM_PL_SYNCCPU_OP_RELEASE ioctl.

BZ: 34332

Some time ttm_bo_reserver will fail, then will not decrease cpu_writers,
while pool_releasefromcpu and wsbmBOReleaseFromCpu will not handle the return error.
ttm_ref_object_base_unref will only access the bo->write_counter with atomic_dec_and_test, which is atomic operation.

Change-Id: Ie831fad02699ec1875d73e238edaf3b2ff10f4d9
Reviewed-on: http://android.intel.com:8080/47556
Reviewed-by: Jiang, Fei <fei.jiang@intel.com>
Reviewed-by: Ding, Haitao <haitao.ding@intel.com>
Tested-by: Ding, Haitao <haitao.ding@intel.com>
Reviewed-by: buildbot <buildbot@intel.com>
Tested-by: buildbot <buildbot@intel.com>
drivers/staging/mrst/imgv/psb_ttm_placement_user.c