public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Andrew Morton <akpm@linux-foundation.org>
To: oleg@tv-sign.ru, ebiederm@xmission.com, mingo@elte.hu,
	torvalds@linux-foundation.org, roland@redhat.com,
	linux-kernel@vger.kernel.org, rjw@sisk.pl
Subject: Re: [PATCH 1/3] introduce PF_KTHREAD flag
Date: Mon, 23 Jun 2008 13:52:53 -0700	[thread overview]
Message-ID: <20080623135253.ed7cabf1.akpm@linux-foundation.org> (raw)
In-Reply-To: <20080623134706.f5e1ef32.akpm@linux-foundation.org>

On Mon, 23 Jun 2008 13:47:06 -0700
Andrew Morton <akpm@linux-foundation.org> wrote:

> I don't yet know how much additional damage will happen as a result.

Lots.

I restored the patches and just dropped the hunk:

  static int has_mm(struct task_struct *p)
  {
-       return (p->mm && !(p->flags & PF_BORROWED_MM));
  }
  
  /**
--- 86,92 ----
  
  static int has_mm(struct task_struct *p)
  {
+       return (p->mm && !(p->flags & PF_KTHREAD));
  }

due to that function having been turned into:

static inline bool should_send_signal(struct task_struct *p)
{
        return !(p->flags & PF_FREEZER_NOSIG);
}

Please check the result?

  reply	other threads:[~2008-06-23 20:54 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-06-01 15:30 [PATCH 1/3] introduce PF_KTHREAD flag Oleg Nesterov
2008-06-03 21:14 ` Andrew Morton
2008-06-04 17:44   ` Oleg Nesterov
2008-06-23 20:40 ` Andrew Morton
2008-06-23 20:47   ` Andrew Morton
2008-06-23 20:52     ` Andrew Morton [this message]
2008-06-23 21:36       ` Rafael J. Wysocki
2008-06-23 21:52         ` Andrew Morton
2008-06-24 13:42       ` Oleg Nesterov
2008-06-24 20:51         ` Rafael J. Wysocki

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=20080623135253.ed7cabf1.akpm@linux-foundation.org \
    --to=akpm@linux-foundation.org \
    --cc=ebiederm@xmission.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=mingo@elte.hu \
    --cc=oleg@tv-sign.ru \
    --cc=rjw@sisk.pl \
    --cc=roland@redhat.com \
    --cc=torvalds@linux-foundation.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