]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
selftests: tracing: Use mutex_unlock for testing glob filter
authorMasami Hiramatsu (Google) <mhiramat@kernel.org>
Thu, 3 Jul 2025 04:26:43 +0000 (13:26 +0900)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 28 Aug 2025 14:25:53 +0000 (16:25 +0200)
commit695de25029c93a256d561ed0068e43c921404eaa
tree0fdcb4c0fb89ecdb2b731dd798e359c6075a5b9c
parent681eb40eae171c584baba81bbfe8af77f95c24ab
selftests: tracing: Use mutex_unlock for testing glob filter

[ Upstream commit a089bb2822a49b0c5777a8936f82c1f8629231fb ]

Since commit c5b6ababd21a ("locking/mutex: implement
mutex_trylock_nested") makes mutex_trylock() as an inlined
function if CONFIG_DEBUG_LOCK_ALLOC=y, we can not use
mutex_trylock() for testing the glob filter of ftrace.

Use mutex_unlock instead.

Link: https://lore.kernel.org/r/175151680309.2149615.9795104805153538717.stgit@mhiramat.tok.corp.google.com
Signed-off-by: Masami Hiramatsu (Google) <mhiramat@kernel.org>
Acked-by: Steven Rostedt (Google) <rostedt@goodmis.org>
Signed-off-by: Shuah Khan <skhan@linuxfoundation.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
tools/testing/selftests/ftrace/test.d/ftrace/func-filter-glob.tc