X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=kernel%2Fmutex.c;h=bcdc9ac8ef60da5a2937ce8205e58ab2a2350deb;hb=0ccd58fc03f40529f66190b1a41e92a732d2bda8;hp=d046a345d365793e84076e2517ec02cdd11bc40d;hpb=4f02f8220562591322c118d07a32bebf705318b7;p=linux-2.6 diff --git a/kernel/mutex.c b/kernel/mutex.c index d046a345d3..bcdc9ac8ef 100644 --- a/kernel/mutex.c +++ b/kernel/mutex.c @@ -165,10 +165,7 @@ __mutex_lock_common(struct mutex *lock, long state, unsigned int subclass, * got a signal? (This code gets eliminated in the * TASK_UNINTERRUPTIBLE case.) */ - if (unlikely((state == TASK_INTERRUPTIBLE && - signal_pending(task)) || - (state == TASK_KILLABLE && - fatal_signal_pending(task)))) { + if (unlikely(signal_pending_state(state, task))) { mutex_remove_waiter(lock, &waiter, task_thread_info(task)); mutex_release(&lock->dep_map, 1, ip);