Skip to content

Commit 3bb5f4a

Browse files
Davidlohr Buesotorvalds
authored andcommitted
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 <dave@stgolabs.net> Reviewed-by: Andrew Morton <akpm@linux-foundation.org> Cc: Peter Zijlstra <peterz@infradead.org> Cc: Ingo Molnar <mingo@elte.hu> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
1 parent 9f132f7 commit 3bb5f4a

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎kernel/locking/mutex.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -987,7 +987,7 @@ __mutex_lock_common(struct mutex *lock, long state, unsigned int subclass,
987987
* wait_lock. This ensures the lock cancellation is ordered
988988
* against mutex_unlock() and wake-ups do not go missing.
989989
*/
990-
if (unlikely(signal_pending_state(state, current))) {
990+
if (signal_pending_state(state, current)) {
991991
ret = -EINTR;
992992
goto err;
993993
}

0 commit comments

Comments
 (0)