fellow_log: finish dskpool_mem at the right place

parent 35cb6abc
......@@ -2231,12 +2231,17 @@ logbuffer_take(struct fellow_logbuffer *to, struct logblk_mempool *to_mempool,
struct fellow_logbuffer *from)
{
logbuffer_wait_flush_fini(from);
/* we take the dskpool to the new logbuffer, if any,
* but the dskpool_mem request belongs to the old
* logbuffer
*/
logbuffer_fini_dskpool_mem(from);
*to = *from;
to->mempool = to_mempool;
BUDDY_POOL_INIT(to->ffpool, from->membuddy, FEP_MEM_LOG,
logbuffer_fill_ffpool, to);
logbuffer_fini_dskpool_mem(from);
BUDDY_POOL_FINI(from->ffpool);
memset(from, 0, sizeof *from);
......
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