From: Davidlohr Bueso Date: Thu, 3 Jan 2019 23:28:44 +0000 (-0800) Subject: kernel/locking/mutex.c: remove caller signal_pending branch predictions X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=3bb5f4ac55dd91d516e7e36b45c94bd57efbb068;p=linux.git kernel/locking/mutex.c: remove caller signal_pending branch predictions This is already done for us internally by the signal machinery. Link: http://lkml.kernel.org/r/20181116002713.8474-2-dave@stgolabs.net Signed-off-by: Davidlohr Bueso Reviewed-by: Andrew Morton Cc: Peter Zijlstra Cc: Ingo Molnar Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- diff --git a/kernel/locking/mutex.c b/kernel/locking/mutex.c index 3f8a35104285a..db578783dd36a 100644 --- a/kernel/locking/mutex.c +++ b/kernel/locking/mutex.c @@ -987,7 +987,7 @@ __mutex_lock_common(struct mutex *lock, long state, unsigned int subclass, * wait_lock. This ensures the lock cancellation is ordered * against mutex_unlock() and wake-ups do not go missing. */ - if (unlikely(signal_pending_state(state, current))) { + if (signal_pending_state(state, current)) { ret = -EINTR; goto err; }