Whamcloud - gitweb
LU-6142 obdclass: make ccc_users in cl_client_cache a refcount_t
[fs/lustre-release.git] / lustre / osc / osc_request.c
index b9e7d5c..57bc02a 100644 (file)
@@ -3796,7 +3796,7 @@ int osc_cleanup_common(struct obd_device *obd)
 
        /* lru cleanup */
        if (cli->cl_cache != NULL) {
-               LASSERT(atomic_read(&cli->cl_cache->ccc_users) > 0);
+               LASSERT(refcount_read(&cli->cl_cache->ccc_users) > 0);
                spin_lock(&cli->cl_cache->ccc_lru_lock);
                list_del_init(&cli->cl_lru_osc);
                spin_unlock(&cli->cl_cache->ccc_lru_lock);