projects
/
platform
/
kernel
/
linux-rpi.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
fa55b7d
)
kernel/locking: Use a pointer in ww_mutex_trylock().
author
Sebastian Andrzej Siewior
<bigeasy@linutronix.de>
Thu, 4 Nov 2021 12:27:06 +0000
(13:27 +0100)
committer
Peter Zijlstra
<peterz@infradead.org>
Wed, 17 Nov 2021 13:48:49 +0000
(14:48 +0100)
mutex_acquire_nest() expects a pointer, pass the pointer.
Fixes:
12235da8c80a1
("kernel/locking: Add context to ww_mutex_trylock()")
Signed-off-by: Sebastian Andrzej Siewior <bigeasy@linutronix.de>
Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Link:
https://lkml.kernel.org/r/20211104122706.frk52zxbjorso2kv@linutronix.de
kernel/locking/ww_rt_mutex.c
patch
|
blob
|
history
diff --git
a/kernel/locking/ww_rt_mutex.c
b/kernel/locking/ww_rt_mutex.c
index
0e00205
..
d1473c6
100644
(file)
--- a/
kernel/locking/ww_rt_mutex.c
+++ b/
kernel/locking/ww_rt_mutex.c
@@
-26,7
+26,7
@@
int ww_mutex_trylock(struct ww_mutex *lock, struct ww_acquire_ctx *ww_ctx)
if (__rt_mutex_trylock(&rtm->rtmutex)) {
ww_mutex_set_context_fastpath(lock, ww_ctx);
- mutex_acquire_nest(&rtm->dep_map, 0, 1, ww_ctx->dep_map, _RET_IP_);
+ mutex_acquire_nest(&rtm->dep_map, 0, 1,
&
ww_ctx->dep_map, _RET_IP_);
return 1;
}