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