struct ll_sb_info *sbi = ll_s2sbi(sb);
char *profilenm = get_profile_name(sb);
unsigned long cfg_instance = ll_get_cfg_instance(sb);
- long ccc_count;
- int next, force = 1, rc = 0;
+ int next, force = 1;
+
ENTRY;
if (IS_ERR(sbi))
force = obd->obd_force;
}
- /* Wait for unstable pages to be committed to stable storage */
- if (force == 0) {
- rc = l_wait_event_abortable(
- sbi->ll_cache->ccc_unstable_waitq,
- atomic_long_read(&sbi->ll_cache->ccc_unstable_nr) == 0);
- }
-
- ccc_count = atomic_long_read(&sbi->ll_cache->ccc_unstable_nr);
- if (force == 0 && rc != -ERESTARTSYS)
- LASSERTF(ccc_count == 0, "count: %li\n", ccc_count);
-
/* We need to set force before the lov_disconnect in
* lustre_common_put_super, since l_d cleans up osc's as well.
*/