Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 40d27378 authored by Mike Danese's avatar Mike Danese Committed by James Morris
Browse files

security: tomoyo: simplify the gc kthread creation



The code is doing the equivalent of the kthread_run macro.

Signed-off-by: default avatarMike Danese <mikedanese@google.com>
Acked-by: default avatarTetsuo Handa <penguin-kernel@I-love.SAKURA.ne.jp>
Signed-off-by: default avatarJames Morris <james.l.morris@oracle.com>
parent d6e0d306
Loading
Loading
Loading
Loading
+2 −7
Original line number Diff line number Diff line
@@ -645,11 +645,6 @@ void tomoyo_notify_gc(struct tomoyo_io_buffer *head, const bool is_register)
		}
	}
	spin_unlock(&tomoyo_io_buffer_list_lock);
	if (is_write) {
		struct task_struct *task = kthread_create(tomoyo_gc_thread,
							  NULL,
							  "GC for TOMOYO");
		if (!IS_ERR(task))
			wake_up_process(task);
	}
	if (is_write)
		kthread_run(tomoyo_gc_thread, NULL, "GC for TOMOYO");
}