diff options
-rw-r--r-- | kernel/mutex.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/kernel/mutex.c b/kernel/mutex.c index d3dcb8b44bac..5c2561844196 100644 --- a/kernel/mutex.c +++ b/kernel/mutex.c | |||
@@ -81,6 +81,7 @@ __mutex_lock_slowpath(atomic_t *lock_count __IP_DECL__); | |||
81 | */ | 81 | */ |
82 | void fastcall __sched mutex_lock(struct mutex *lock) | 82 | void fastcall __sched mutex_lock(struct mutex *lock) |
83 | { | 83 | { |
84 | might_sleep(); | ||
84 | /* | 85 | /* |
85 | * The locking fastpath is the 1->0 transition from | 86 | * The locking fastpath is the 1->0 transition from |
86 | * 'unlocked' into 'locked' state. | 87 | * 'unlocked' into 'locked' state. |
@@ -253,6 +254,7 @@ __mutex_lock_interruptible_slowpath(atomic_t *lock_count __IP_DECL__); | |||
253 | */ | 254 | */ |
254 | int fastcall __sched mutex_lock_interruptible(struct mutex *lock) | 255 | int fastcall __sched mutex_lock_interruptible(struct mutex *lock) |
255 | { | 256 | { |
257 | might_sleep(); | ||
256 | return __mutex_fastpath_lock_retval | 258 | return __mutex_fastpath_lock_retval |
257 | (&lock->count, __mutex_lock_interruptible_slowpath); | 259 | (&lock->count, __mutex_lock_interruptible_slowpath); |
258 | } | 260 | } |