[PATCH] mark mutex_lock*() as might_sleep()

Mark mutex_lock() and mutex_lock_interruptible() as might_sleep()
functions.

Signed-off-by: Ingo Molnar <mingo@elte.hu>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>

authored by

Ingo Molnar and committed by
Linus Torvalds
c544bdb1 73165b88

+2
+2
kernel/mutex.c
··· 81 81 */ 82 82 void fastcall __sched mutex_lock(struct mutex *lock) 83 83 { 84 + might_sleep(); 84 85 /* 85 86 * The locking fastpath is the 1->0 transition from 86 87 * 'unlocked' into 'locked' state. ··· 254 253 */ 255 254 int fastcall __sched mutex_lock_interruptible(struct mutex *lock) 256 255 { 256 + might_sleep(); 257 257 return __mutex_fastpath_lock_retval 258 258 (&lock->count, __mutex_lock_interruptible_slowpath); 259 259 }