ocw.ocw_rc = 0;
client_obd_list_unlock(&cli->cl_loi_list_lock);
- /* First osc_io_unplug() tries to put current object
- * on ready list, second osc_io_unplug() makes sure that
- * dirty flush can still be triggered even if current
- * object hasn't any dirty pages */
- osc_io_unplug(env, cli, osc, PDL_POLICY_ROUND);
- osc_io_unplug(env, cli, NULL, PDL_POLICY_ROUND);
+ osc_io_unplug_async(env, cli, NULL);
CDEBUG(D_CACHE, "%s: sleeping for cache space @ %p for %p\n",
cli->cl_import->imp_obd->obd_name, &ocw, oap);