public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Balbir Singh <balbir@linux.vnet.ibm.com>
To: Jonathan Lim <jlim@sgi.com>
Cc: linux-kernel@vger.kernel.org
Subject: Re: [PATCH] Send exit code through for taskstats.ac_exitcode
Date: Tue, 21 Aug 2007 09:14:13 +0530	[thread overview]
Message-ID: <46CA5F8D.20104@linux.vnet.ibm.com> (raw)
In-Reply-To: <200708210222.l7L2MFcJ377626@sabah.engr.sgi.com>

Jonathan Lim wrote:
> taskstats.ac_exitcode is assigned to task_struct.exit_code in bacct_add_tsk()
> through the following kernel function calls: 
> 
>   do_exit()
>     taskstats_exit_send()
>       fill_pid()
>         bacct_add_tsk()
> 
> The problem is that in do_exit(), task_struct.exit_code is set to 'code' 
> only after taskstats_exit_send() has been called.  So we need to send 'code'
> through to bacct_add_tsk().
> 

Hi, Jonathan,

The patches look like a step in the right direction, I would suggest an alternate
implementation

Why can't we assign tsk->exit_code to code earlier? Can we not move up the assignment
to before taskstats_exit()? Wouldn't that be much simpler?

-- 
	Warm Regards,
	Balbir Singh
	Linux Technology Center
	IBM, ISTL

  reply	other threads:[~2007-08-21  3:44 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-08-21  2:22 [PATCH] Send exit code through for taskstats.ac_exitcode Jonathan Lim
2007-08-21  3:44 ` Balbir Singh [this message]
2007-08-21 18:24   ` Jonathan Lim
2007-08-21 18:27     ` Balbir Singh
2007-08-21 18:57       ` Jonathan Lim

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=46CA5F8D.20104@linux.vnet.ibm.com \
    --to=balbir@linux.vnet.ibm.com \
    --cc=jlim@sgi.com \
    --cc=linux-kernel@vger.kernel.org \
    /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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox