/*
* error happened, we'll try to repeat on next boot ?
*/
- LASSERTF(req->rq_transno == 0 || rc == -EIO ||
+ LASSERTF(req->rq_transno == 0 || rc == -EIO || rc == -EROFS ||
req->rq_import_generation < imp->imp_generation,
"transno %llu, rc %d, gen: req %d, imp %d\n",
req->rq_transno, rc, req->rq_import_generation,
struct llog_ctxt *ctxt;
struct llog_handle *llh;
int *arr;
- struct list_head list, *le;
+ LIST_HEAD(list);
+ struct list_head *le;
struct llog_logid lgid;
int rc, i, count = 0, done = 0;
llh = ctxt->loc_handle;
LASSERT(llh);
- INIT_LIST_HEAD(&list);
spin_lock(&d->opd_sync_lock);
list_splice(&d->opd_sync_committed_there, &list);
INIT_LIST_HEAD(&d->opd_sync_committed_there);
rc = llog_cleanup(&env, ctxt);
if (rc)
GOTO(out, rc);
- schedule_timeout_interruptible(HZ * 5);
+ schedule_timeout_interruptible(cfs_time_seconds(5));
goto again;
}