Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1222700

Re: [PATCH] regmap: Allocate buffers with GFP_ATOMIC when fast_io == true

From Mark Brown <broonie@kernel.org>
Newsgroups linux.kernel
Subject Re: [PATCH] regmap: Allocate buffers with GFP_ATOMIC when fast_io == true
Date 2015-09-11 12:30 +0200
Message-ID <q7tKG-7d0-27@gated-at.bofh.it> (permalink)
References <q7fHI-2ta-3@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


[Multipart message — attachments visible in raw view] - view raw

On Thu, Sep 10, 2015 at 12:27:01PM -0700, Stephen Boyd wrote:
> If a regmap is using fast_io, allocate buffers in the write APIs
> with GFP_ATOMIC instead of GFP_KERNEL. Otherwise we may schedule
> while atomic.

Why is this needed?  If something needs fast I/O it probably doesn't
want to be going down any of the code paths that result in us doing
allocations.  I'd expect either no cache, a flat cache or setting up
defaults at initialisation time.

Back to linux.kernel | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

[PATCH] regmap: Allocate buffers with GFP_ATOMIC when fast_io == true Stephen Boyd <sboyd@codeaurora.org> - 2015-09-10 21:30 +0200
  Re: [PATCH] regmap: Allocate buffers with GFP_ATOMIC when fast_io ==  true Mark Brown <broonie@kernel.org> - 2015-09-11 12:30 +0200
    Re: [PATCH] regmap: Allocate buffers with GFP_ATOMIC when fast_io ==  true Stephen Boyd <sboyd@codeaurora.org> - 2015-09-11 18:20 +0200
      Re: [PATCH] regmap: Allocate buffers with GFP_ATOMIC when fast_io ==  true Mark Brown <broonie@kernel.org> - 2015-09-11 19:30 +0200

csiph-web