fellow_log: fix bad assertions in logbuffer_ref()

flush_active() can be called multiple times from logbuffer_flush(), and
so can logbuffer_ref()
parent ecbe6ef0
......@@ -2543,8 +2543,6 @@ logbuffer_ref(struct fellow_logbuffer *lbuf)
assert(logbuffer_can(lbuf, LBUF_CAN_REF));
AZ(todo->magic);
assert(todo->where == LOGOFF_INVAL);
INIT_OBJ(todo, FELLOW_DISK_LOG_OFF_TODO_MAGIC);
todo->off = lbuf->active.off;
......
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