History

kernel/locking/mutex.c: remove caller signal_pending branch predictions

This is already done for us internally by the signal machinery.

Davidlohr Bueso committed 7 years ago

Commit 3bb5f4a1 parent 9f132f71 file · +1 −1Browse files

Showing the changes to kernel (1 of 1 file). Show all

Unified · Split

kernel/locking/mutex.c+1−1
@@ -987,7 +987,7 @@ __mutex_lock_common(struct mutex *lock, long state, unsigned int subclass, · 986 unmodified lines
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 }

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t