linux-um.lists.infradead.org archive mirror
 help / color / mirror / Atom feed
From: Anton Ivanov <aivanov@Brocade.com>
To: "user-mode-linux-devel@lists.sourceforge.net"
	<user-mode-linux-devel@lists.sourceforge.net>
Subject: Re: [uml-devel] [PATCH 2/3] Errata: HR Timer subsystem
Date: Fri, 20 Nov 2015 18:12:21 +0000	[thread overview]
Message-ID: <564F6285.8020200@brocade.com> (raw)
In-Reply-To: <1448037915-921549-2-git-send-email-aivanov@brocade.com>

This one came up with a messed up formatting, I will resubmit at some 
point (hopefully as we refine this).

A.

On 20/11/15 16:45, Anton Ivanov wrote:
> The signals should be restored to their pre-off state
> not turned on.
>
> Signed-off-by: Anton Ivanov <aivanov@brocade.com>
> ---
>   arch/um/kernel/skas/mmu.c | 5 +++--
>   1 file changed, 3 insertions(+), 2 deletions(-)
>
> diff --git a/arch/um/kernel/skas/mmu.c b/arch/um/kernel/skas/mmu.c
> index 9591a66..a845de6 100644
> --- a/arch/um/kernel/skas/mmu.c
> +++ b/arch/um/kernel/skas/mmu.c
> @@ -53,6 +53,7 @@ int init_new_context(struct task_struct *task, struct mm_struct *mm)
>   	struct mm_context *to_mm = &mm->context;
>   	unsigned long stack = 0;
>   	int ret = -ENOMEM;
> +    unsigned long int flags;
>   
>   	stack = get_zeroed_page(GFP_KERNEL);
>   	if (stack == 0)
> @@ -62,12 +63,12 @@ int init_new_context(struct task_struct *task, struct mm_struct *mm)
>   	if (current->mm != NULL && current->mm != &init_mm)
>   		from_mm = &current->mm->context;
>   
> -	block_signals();
> +	local_irq_save(flags);
>   	if (from_mm)
>   		to_mm->id.u.pid = copy_context_skas0(stack,
>   						     from_mm->id.u.pid);
>   	else to_mm->id.u.pid = start_userspace(stack);
> -	unblock_signals();
> +    local_irq_restore(flags);
>   
>   	if (to_mm->id.u.pid < 0) {
>   		ret = to_mm->id.u.pid;

------------------------------------------------------------------------------
_______________________________________________
User-mode-linux-devel mailing list
User-mode-linux-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/user-mode-linux-devel


  reply	other threads:[~2015-11-20 18:12 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-11-20 16:45 [uml-devel] [PATCH 1/3] IRQ Reentrancy guard Anton Ivanov
2015-11-20 16:45 ` [uml-devel] [PATCH 2/3] Errata: HR Timer subsystem Anton Ivanov
2015-11-20 18:12   ` Anton Ivanov [this message]
2015-11-20 16:45 ` [uml-devel] [PATCH 3/3] Signal handling cleanup Anton Ivanov

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=564F6285.8020200@brocade.com \
    --to=aivanov@brocade.com \
    --cc=user-mode-linux-devel@lists.sourceforge.net \
    /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;
as well as URLs for NNTP newsgroup(s).