diff options
author | Davidlohr Bueso <dave@stgolabs.net> | 2015-01-06 14:45:04 -0500 |
---|---|---|
committer | Ingo Molnar <mingo@kernel.org> | 2015-01-14 09:07:21 -0500 |
commit | 63dc47e956b464e0ed3282f6e70974eebf850180 (patch) | |
tree | c7906a1e30d14426604ca3cb508139cb7e1ba592 /kernel/locking/mutex.c | |
parent | 188c901941efd43cbf21e8f4f9e9a276536b989c (diff) |
locking/mutex: Checking the stamp is WW only
Mark it so by renaming __mutex_lock_check_stamp().
Signed-off-by: Davidlohr Bueso <dbueso@suse.de>
Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Cc: "Paul E. McKenney" <paulmck@linux.vnet.ibm.com>
Cc: Thomas Gleixner <tglx@linutronix.de>
Cc: Linus Torvalds <torvalds@linux-foundation.org>
Link: http://lkml.kernel.org/r/1420573509-24774-2-git-send-email-dave@stgolabs.net
Signed-off-by: Ingo Molnar <mingo@kernel.org>
Diffstat (limited to 'kernel/locking/mutex.c')
-rw-r--r-- | kernel/locking/mutex.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/kernel/locking/mutex.c b/kernel/locking/mutex.c index 454195194d4a..b042ea57bbea 100644 --- a/kernel/locking/mutex.c +++ b/kernel/locking/mutex.c | |||
@@ -469,7 +469,7 @@ void __sched ww_mutex_unlock(struct ww_mutex *lock) | |||
469 | EXPORT_SYMBOL(ww_mutex_unlock); | 469 | EXPORT_SYMBOL(ww_mutex_unlock); |
470 | 470 | ||
471 | static inline int __sched | 471 | static inline int __sched |
472 | __mutex_lock_check_stamp(struct mutex *lock, struct ww_acquire_ctx *ctx) | 472 | __ww_mutex_lock_check_stamp(struct mutex *lock, struct ww_acquire_ctx *ctx) |
473 | { | 473 | { |
474 | struct ww_mutex *ww = container_of(lock, struct ww_mutex, base); | 474 | struct ww_mutex *ww = container_of(lock, struct ww_mutex, base); |
475 | struct ww_acquire_ctx *hold_ctx = ACCESS_ONCE(ww->ctx); | 475 | struct ww_acquire_ctx *hold_ctx = ACCESS_ONCE(ww->ctx); |
@@ -557,7 +557,7 @@ __mutex_lock_common(struct mutex *lock, long state, unsigned int subclass, | |||
557 | } | 557 | } |
558 | 558 | ||
559 | if (use_ww_ctx && ww_ctx->acquired > 0) { | 559 | if (use_ww_ctx && ww_ctx->acquired > 0) { |
560 | ret = __mutex_lock_check_stamp(lock, ww_ctx); | 560 | ret = __ww_mutex_lock_check_stamp(lock, ww_ctx); |
561 | if (ret) | 561 | if (ret) |
562 | goto err; | 562 | goto err; |
563 | } | 563 | } |