Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 218561
b: refs/heads/master
c: b8ed374
h: refs/heads/master
i:
  218559: d808516
v: v3
  • Loading branch information
Namhyung Kim authored and Linus Torvalds committed Oct 28, 2010
1 parent 8cffd62 commit c50de3e
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 3 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 5ef45079dd9c8f2e9c7aa788dc3121835ae52863
refs/heads/master: b8ed374e202e23caaf9bd77dcadc9de6447faaa8
9 changes: 8 additions & 1 deletion trunk/include/linux/sched.h
Original file line number Diff line number Diff line change
Expand Up @@ -2236,9 +2236,16 @@ static inline void task_unlock(struct task_struct *p)
spin_unlock(&p->alloc_lock);
}

extern struct sighand_struct *lock_task_sighand(struct task_struct *tsk,
extern struct sighand_struct *__lock_task_sighand(struct task_struct *tsk,
unsigned long *flags);

#define lock_task_sighand(tsk, flags) \
({ struct sighand_struct *__ss; \
__cond_lock(&(tsk)->sighand->siglock, \
(__ss = __lock_task_sighand(tsk, flags))); \
__ss; \
}) \

static inline void unlock_task_sighand(struct task_struct *tsk,
unsigned long *flags)
{
Expand Down
3 changes: 2 additions & 1 deletion trunk/kernel/signal.c
Original file line number Diff line number Diff line change
Expand Up @@ -1105,7 +1105,8 @@ int zap_other_threads(struct task_struct *p)
return count;
}

struct sighand_struct *lock_task_sighand(struct task_struct *tsk, unsigned long *flags)
struct sighand_struct *__lock_task_sighand(struct task_struct *tsk,
unsigned long *flags)
{
struct sighand_struct *sighand;

Expand Down

0 comments on commit c50de3e

Please sign in to comment.