Skip to contentSkip to conversation

Use same_thread_group() in signalfd.c

PATCH In review Pavel Emelyanov 2 participants 2 messages Aug 29, 2007 VFS

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Use same_thread_group() in signalfd.c

This is a lost hunk of previous patch that isolated the explicit usage of task->tgid in some places. The signalfd code uses the tsk->tgid comparison.

---

fs/signalfd.c +0 -0
index a8e293d..5bfd2c5 100644
@@ -64,7 +64,7 @@ static int signalfd_lock(struct signalfd
		return 0;
	}

- if (lk->tsk->tgid == current->tgid)
+ if (same_thread_group(lk->tsk, current->tgid))

		lk->tsk = current;

	return 1;
Acked-by on v1 1/1
#1 lore raw

Pavel Emelianov [[email protected]] wrote:

| This is a lost hunk of previous patch that isolated the
| explicit usage of task->tgid in some places. The signalfd
| code uses the tsk->tgid comparison.
| 
| Signed-off-by: Pavel Emelyanov <[email protected]>
| 
| ---
| 
| diff --git a/fs/signalfd.c b/fs/signalfd.c
| index a8e293d..5bfd2c5 100644
| --- a/fs/signalfd.c
| +++ b/fs/signalfd.c
| @@ -64,7 +64,7 @@ static int signalfd_lock(struct signalfd
| 		return 0;
| 	}
| 
| -	if (lk->tsk->tgid == current->tgid)
| +	if (same_thread_group(lk->tsk, current->tgid))
| 		lk->tsk = current;
| 
| 	return 1;