diff options
Diffstat (limited to 'include/linux/sched.h')
-rw-r--r-- | include/linux/sched.h | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/include/linux/sched.h b/include/linux/sched.h index 393ce94e54b7..3ff5c8519abd 100644 --- a/include/linux/sched.h +++ b/include/linux/sched.h | |||
@@ -2236,9 +2236,16 @@ static inline void task_unlock(struct task_struct *p) | |||
2236 | spin_unlock(&p->alloc_lock); | 2236 | spin_unlock(&p->alloc_lock); |
2237 | } | 2237 | } |
2238 | 2238 | ||
2239 | extern struct sighand_struct *lock_task_sighand(struct task_struct *tsk, | 2239 | extern struct sighand_struct *__lock_task_sighand(struct task_struct *tsk, |
2240 | unsigned long *flags); | 2240 | unsigned long *flags); |
2241 | 2241 | ||
2242 | #define lock_task_sighand(tsk, flags) \ | ||
2243 | ({ struct sighand_struct *__ss; \ | ||
2244 | __cond_lock(&(tsk)->sighand->siglock, \ | ||
2245 | (__ss = __lock_task_sighand(tsk, flags))); \ | ||
2246 | __ss; \ | ||
2247 | }) \ | ||
2248 | |||
2242 | static inline void unlock_task_sighand(struct task_struct *tsk, | 2249 | static inline void unlock_task_sighand(struct task_struct *tsk, |
2243 | unsigned long *flags) | 2250 | unsigned long *flags) |
2244 | { | 2251 | { |