public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Oleg Nesterov <oleg@tv-sign.ru>
To: Johannes Weiner <hannes@saeurebad.de>
Cc: Andrew Morton <akpm@linux-foundation.org>,
	Roland McGrath <roland@redhat.com>,
	linux-kernel@vger.kernel.org
Subject: Re: [PATCH] coredump: kill mm->core_done
Date: Sun, 20 Jul 2008 16:37:24 +0400	[thread overview]
Message-ID: <20080720123724.GA264@tv-sign.ru> (raw)
In-Reply-To: <87tzekrdnm.fsf@saeurebad.de>

On 07/20, Johannes Weiner wrote:
> 
> Oleg Nesterov <oleg@tv-sign.ru> writes:
> 
> > On 07/20, Johannes Weiner wrote:
> >> 
> >> Oleg Nesterov <oleg@tv-sign.ru> writes:
> >> 
> >> > --- 26-rc2/kernel/exit.c~5_KILL_CORE_DONE	2008-07-13 19:58:19.000000000 +0400
> >> > +++ 26-rc2/kernel/exit.c	2008-07-15 17:06:58.000000000 +0400
> >> > @@ -680,7 +680,13 @@ static void exit_mm(struct task_struct *
> >> >  		if (atomic_dec_and_test(&core_state->nr_threads))
> >> >  			complete(&core_state->startup);
> >> >  
> >> > -		wait_for_completion(&mm->core_done);
> >> > +		for (;;) {
> >> > +			set_task_state(tsk, TASK_UNINTERRUPTIBLE);
> >> > +			if (!self.task) /* see coredump_finish() */
> >> 
> >> kernel/exit.c: In function `exit_mm':
> >> kernel/exit.c:686: error: `self' undeclared (first use in this function)
> >> kernel/exit.c:686: error: (Each undeclared identifier is reported only once
> >> kernel/exit.c:686: error: for each function it appears in.)
> >> make[1]: *** [kernel/exit.o] Error 1
> >
> > This is on top of other patches in -mm tree,
> >
> >          coredump-zap_threads-comments-use-while_each_thread.patch
> >          introduce-pf_kthread-flag.patch
> >          kill-pf_borrowed_mm-in-favour-of-pf_kthread.patch
> >          coredump-zap_threads-must-skip-kernel-threads.patch
> >          coredump-elf_core_dump-skip-kernel-threads.patch
> >          coredump-turn-mm-core_startup_done-into-the-pointer-to-struct-core_state.patch
> >          coredump-move-mm-core_waiters-into-struct-core_state.patch
> >          coredump-simplify-core_state-nr_threads-calculation.patch
> >          coredump-turn-core_state-nr_threads-into-atomic_t.patch
> >          coredump-make-mm-core_state-visible-to-core_dump.patch
> >          coredump-construct-the-list-of-coredumping-threads-at-startup-time.patch
> >          coredump-elf_core_dump-use-core_state-dumper-list.patch
> >          coredump-elf_fdpic_core_dump-use-core_state-dumper-list.patch
> >          coredump-kill-mm-core_done.patch
>
> Sorry, I should have given more information.
>
> I was building -mm directly with all these patches applied.  I did not
> cherry-pick this exact patch into some other tree.
>
> But I still can not find anything defining `self' in these patches:

Because it was merged into -mm before the previous 4 patches by mistake,
sorry.

Just drop this one:

	http://userweb.kernel.org/~akpm/mmotm/broken-out/coredump-kill-mm-core_done.patch

Oleg.


  reply	other threads:[~2008-07-20 12:34 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-07-15 14:07 [PATCH] coredump: kill mm->core_done Oleg Nesterov
2008-07-15 16:21 ` Oleg Nesterov
2008-07-15 22:44   ` Andrew Morton
2008-07-19 23:31 ` Johannes Weiner
2008-07-20  8:47   ` Oleg Nesterov
2008-07-20 11:35     ` Johannes Weiner
2008-07-20 12:37       ` Oleg Nesterov [this message]
2008-07-20 13:19         ` Johannes Weiner
2008-07-20  3:20 ` Roland McGrath
2008-07-20  8:51   ` Oleg Nesterov

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=20080720123724.GA264@tv-sign.ru \
    --to=oleg@tv-sign.ru \
    --cc=akpm@linux-foundation.org \
    --cc=hannes@saeurebad.de \
    --cc=linux-kernel@vger.kernel.org \
    --cc=roland@redhat.com \
    /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