mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Daniel Walker <dwalker@mvista.com>
To: Ingo Molnar <mingo@elte.hu>
Cc: linux-kernel@vger.kernel.org
Subject: Re: [PATCH -rt] update kmap_atomic on !HIGHMEM
Date: Wed, 27 Dec 2006 13:54:15 -0800	[thread overview]
Message-ID: <1167256455.14081.51.camel@imap.mvista.com> (raw)
In-Reply-To: <20061227212555.GA14947@elte.hu>

On Wed, 2006-12-27 at 22:25 +0100, Ingo Molnar wrote:
> 
> +void pagefault_disable(void)
> +{
> +       current->pagefault_disabled++;
> +       /*
> +        * make sure to have issued the store before a pagefault
> +        * can hit.
> +        */
> +       barrier();
> +}
> +
> +void pagefault_enable(void)
> +{
> +       /*
> +        * make sure to issue those last loads/stores before enabling
> +        * the pagefault handler again.
> +        */
> +       barrier();
> +       current->pagefault_disabled--;
> +}
> +

I'll test it, but clearly I'm not going to get the same scheduling while
atomic using this change.. So may as well just put it in -rt and see if
something crashes ..

Daniel


  parent reply	other threads:[~2006-12-27 21:54 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-12-27 19:35 Daniel Walker
2006-12-27 20:54 ` Ingo Molnar
2006-12-27 21:04   ` Daniel Walker
2006-12-27 21:25 ` Ingo Molnar
2006-12-27 21:31   ` Ingo Molnar
2006-12-27 21:37     ` Daniel Walker
2006-12-27 21:41       ` Ingo Molnar
2006-12-27 21:36   ` Daniel Walker
2006-12-27 21:54   ` Daniel Walker [this message]
2006-12-28  0:05   ` Daniel Walker

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=1167256455.14081.51.camel@imap.mvista.com \
    --to=dwalker@mvista.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=mingo@elte.hu \
    /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

all inboxes | Powered by JetHome®