linux-rt-users.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Daniel Bristot de Oliveira <bristot@redhat.com>
To: Sebastian Andrzej Siewior <bigeasy@linutronix.de>,
	linux-rt-users@vger.kernel.org
Cc: Steven Rostedt <rostedt@goodmis.org>,
	Thomas Gleixner <tglx@linutronix.de>
Subject: Re: [PATCH RT] mm: Warn on memory allocation in non-preemptible context on RT
Date: Fri, 6 Mar 2020 17:40:37 +0100	[thread overview]
Message-ID: <67d03e4c-09be-ff63-1cde-1398aec730a8@redhat.com> (raw)
In-Reply-To: <20200306160315.irbxjl3md4edsf7x@linutronix.de>

On 3/6/20 5:03 PM, Sebastian Andrzej Siewior wrote:
> The memory allocation via kmalloc(, GFP_ATOMIC) in atomic context
> (disabled preemption or interrupts) is not allowed on RT because the
> buddy allocator is using sleeping locks which can't be acquired in this
> context.
> Such an an allocation may not trigger a warning in the buddy allocator
> if it is always satisfied in the SLUB allocator.
> 
> Add a warning on RT if a memory allocation was attempted in not
> preemptible region.
> 
> Signed-off-by: Sebastian Andrzej Siewior <bigeasy@linutronix.de>

Reviewed-by: Daniel Bristot de Oliveira <bristot@redhat.com>

Thanks!
-- Daniel


      reply	other threads:[~2020-03-06 16:40 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-03-06 16:03 [PATCH RT] mm: Warn on memory allocation in non-preemptible context on RT Sebastian Andrzej Siewior
2020-03-06 16:40 ` Daniel Bristot de Oliveira [this message]

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=67d03e4c-09be-ff63-1cde-1398aec730a8@redhat.com \
    --to=bristot@redhat.com \
    --cc=bigeasy@linutronix.de \
    --cc=linux-rt-users@vger.kernel.org \
    --cc=rostedt@goodmis.org \
    --cc=tglx@linutronix.de \
    /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).