linux-arm-kernel.lists.infradead.org archive mirror
 help / color / mirror / Atom feed
From: cai@gmx.us (Qian Cai)
To: linux-arm-kernel@lists.infradead.org
Subject: [PATCH] efi: permit calling efi_mem_reserve_persistent from atomic context
Date: Thu, 08 Nov 2018 15:48:37 -0500	[thread overview]
Message-ID: <1541710117.12945.3.camel@gmx.us> (raw)
In-Reply-To: <20181108180511.30239-1-ard.biesheuvel@linaro.org>

On Thu, 2018-11-08 at 19:05 +0100, Ard Biesheuvel wrote:
> Currently, efi_mem_reserve_persistent() may not be called from atomic
> context, since both the kmalloc() call and the memremap() call may
> sleep.
> 
> The kmalloc() call is easy enough to fix, but the memremap() call
> needs to be moved into an init hook since we cannot control the
> memory allocation behavior of memremap() at the call site.
> 
> Signed-off-by: Ard Biesheuvel <ard.biesheuvel@linaro.org>
Tested-by: Qian Cai <cai@gmx.us>

  reply	other threads:[~2018-11-08 20:48 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-11-08 18:05 [PATCH] efi: permit calling efi_mem_reserve_persistent from atomic context Ard Biesheuvel
2018-11-08 20:48 ` Qian Cai [this message]
2018-11-10  2:45 ` Qian Cai
2018-11-12  2:45   ` Qian Cai
2018-11-12  8:32     ` Marc Zyngier
2018-11-12 12:14       ` Qian Cai

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=1541710117.12945.3.camel@gmx.us \
    --to=cai@gmx.us \
    --cc=linux-arm-kernel@lists.infradead.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;
as well as URLs for NNTP newsgroup(s).