fellow_logcache: get ioctx only after we have all the memory

parent 1e0b40fc
......@@ -1184,7 +1184,6 @@ fellow_logcache_init(struct fellow_logcache *flc, struct fellow_fd *ffd,
INIT_OBJ(flc, FELLOW_LOGCACHE_MAGIC);
flc->ffd = ffd;
flc->id = id;
fellow_fd_ioctx_get(ffd, &flc->fdil);
flc->region = region;
VTAILQ_INIT(&flc->free);
......@@ -1223,6 +1222,7 @@ fellow_logcache_init(struct fellow_logcache *flc, struct fellow_fd *ffd,
}
buddy_alloc_wait_done(reqs);
fellow_fd_ioctx_get(ffd, &flc->fdil);
}
static void
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment