diff options
Diffstat (limited to 'lib/kernel_lock.c')
| -rw-r--r-- | lib/kernel_lock.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/kernel_lock.c b/lib/kernel_lock.c index 4ebfa5a164d7..5526b46aba94 100644 --- a/lib/kernel_lock.c +++ b/lib/kernel_lock.c | |||
| @@ -122,8 +122,10 @@ void __lockfunc _lock_kernel(const char *func, const char *file, int line) | |||
| 122 | 122 | ||
| 123 | trace_lock_kernel(func, file, line); | 123 | trace_lock_kernel(func, file, line); |
| 124 | 124 | ||
| 125 | if (likely(!depth)) | 125 | if (likely(!depth)) { |
| 126 | might_sleep(); | ||
| 126 | __lock_kernel(); | 127 | __lock_kernel(); |
| 128 | } | ||
| 127 | current->lock_depth = depth; | 129 | current->lock_depth = depth; |
| 128 | } | 130 | } |
| 129 | 131 | ||
