zlogger: remove outdated comment 45/297845/2
authorMateusz Majewski <m.majewski2@samsung.com>
Fri, 25 Aug 2023 10:13:39 +0000 (12:13 +0200)
committerMateusz Majewski <m.majewski2@samsung.com>
Fri, 25 Aug 2023 11:10:49 +0000 (13:10 +0200)
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>
kernel/zlogger/zlogger.c

index 427ebf61fcd24f7d5f381c56e58db5f6c8c3e203..1c047a961cec2be645b0a0d0d9a96e29e9be8c12 100644 (file)
@@ -262,7 +262,6 @@ static int zlog_task(void *user_data)
                        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);