]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
x86/itmt: Use guard() for itmt_update_mutex
authorK Prateek Nayak <kprateek.nayak@amd.com>
Mon, 23 Dec 2024 04:34:01 +0000 (04:34 +0000)
committerPeter Zijlstra <peterz@infradead.org>
Mon, 13 Jan 2025 13:10:23 +0000 (14:10 +0100)
commitfc1055d5334f1808e3e445592a83f31624b953f1
treed4fa5755a405ae4c7e7a324fe01be5c7d851f192
parent2f6f726bdda5f24227de10bc599038e0ca0d65f4
x86/itmt: Use guard() for itmt_update_mutex

Use guard() for itmt_update_mutex which avoids the extra mutex_unlock()
in the bailout and return paths.

Signed-off-by: K Prateek Nayak <kprateek.nayak@amd.com>
Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Reviewed-by: Tim Chen <tim.c.chen@linux.intel.com>
Link: https://lore.kernel.org/r/20241223043407.1611-3-kprateek.nayak@amd.com
arch/x86/kernel/itmt.c