The comment isn't outright false, as the userspace might really be using
the block. However,
3a489d20b218eec5073f18e5b248ced6c6a843d8 handles
exactly that case, so it is completely normal and correct to unmap the
block that is in use.
Change-Id: Icc4bec0268a3cba23990e35fb36448851ca4fb1f
Signed-off-by: Mateusz Majewski <m.majewski2@samsung.com>
if (blk && get_block(blk)->head.ts < g_start_time) {
get_block(blk)->head.tid = 0;
ptr->blk = 0;
- // TODO: The userspace might very well be using this block right now.
zlogger_unmap(ptr);
mutex_lock(&g_block_mutex);
queue_push(&g_free_q, blk);