All of lore.kernel.org
 help / color / mirror / Atom feed
From: Rusty Russell <rusty@rustcorp.com.au>
To: "Saurabh Desai" <sdesai@us.ibm.com>
Cc: torvalds@transmeta.com, bcrl@redhat.com,
	linux-kernel@vger.kernel.org, trivial@rustcorp.com.au
Subject: Re: A fix for futex patch
Date: Sat, 13 Jul 2002 13:26:11 +1000	[thread overview]
Message-ID: <20020713032213.CD682422D@lists.samba.org> (raw)
In-Reply-To: Your message of "Fri, 12 Jul 2002 11:08:47 EST." <OFE0524400.39220EE3-ON85256BF4.0057F3F7@raleigh.ibm.com>

In message <OFE0524400.39220EE3-ON85256BF4.0057F3F7@raleigh.ibm.com> you write:
> I looked in latest 2.5.25 futex.c and at line # 278, the f_owner.pid is
> back to "current->pid".
> Last month, I'd send you this fix to work correctly with cloned task.
> I thought at one point you had changed this to "current->tgid", and now
> it's back to pid.
> The pid should be tgid to work for all cases.

Oops.  Good catch.  My mistake.

Linus, "getpid()" returns "tgid" not "pid", so this is correct.

Thanks!
Rusty.

diff -urN -I $.*$ --exclude TAGS -X /home/rusty/devel/kernel/kernel-patches/current-dontdiff --minimal linux-2.5.25/kernel/futex.c working-2.5.25-futex/kernel/futex.c
--- linux-2.5.25/kernel/futex.c	Fri Jun 21 09:41:56 2002
+++ working-2.5.25-futex/kernel/futex.c	Sat Jul 13 13:24:43 2002
@@ -275,7 +275,7 @@
 	filp->f_dentry = dget(futex_dentry);
 
 	if (signal) {
-		filp->f_owner.pid = current->pid;
+		filp->f_owner.pid = current->tgid;
 		filp->f_owner.uid = current->uid;
 		filp->f_owner.euid = current->euid;
 		filp->f_owner.signum = signal;

--
  Anyone who quotes me in their sig is an idiot. -- Rusty Russell.

           reply	other threads:[~2002-07-13  3:19 UTC|newest]

Thread overview: expand[flat|nested]  mbox.gz  Atom feed
 [parent not found: <OFE0524400.39220EE3-ON85256BF4.0057F3F7@raleigh.ibm.com>]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20020713032213.CD682422D@lists.samba.org \
    --to=rusty@rustcorp.com.au \
    --cc=bcrl@redhat.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=sdesai@us.ibm.com \
    --cc=torvalds@transmeta.com \
    --cc=trivial@rustcorp.com.au \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.