if (ret)
                        return ret;
 
-               /*
-                * remove sync_obj with ttm_bo_wait, the wait should be
-                * finished, and no new wait object should have been added.
-                */
-               spin_lock(&bdev->fence_lock);
-               ret = ttm_bo_wait(bo, false, false, true);
-               WARN_ON(ret);
-               spin_unlock(&bdev->fence_lock);
-               if (ret)
-                       return ret;
-
                spin_lock(&glob->lru_lock);
                ret = __ttm_bo_reserve(bo, false, true, false, NULL);
 
                        spin_unlock(&glob->lru_lock);
                        return 0;
                }
-       } else
-               spin_unlock(&bdev->fence_lock);
+
+               /*
+                * remove sync_obj with ttm_bo_wait, the wait should be
+                * finished, and no new wait object should have been added.
+                */
+               spin_lock(&bdev->fence_lock);
+               ret = ttm_bo_wait(bo, false, false, true);
+               WARN_ON(ret);
+       }
+       spin_unlock(&bdev->fence_lock);
 
        if (ret || unlikely(list_empty(&bo->ddestroy))) {
                __ttm_bo_unreserve(bo);
        void *sync_obj;
        int ret = 0;
 
+       lockdep_assert_held(&bo->resv->lock.base);
+
        if (likely(bo->sync_obj == NULL))
                return 0;