lkml.org 
[lkml]   [2015]   [Sep]   [11]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH] regmap: Allocate buffers with GFP_ATOMIC when fast_io == true
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.
[unhandled content-type:application/pgp-signature]
\
 
 \ /
  Last update: 2015-09-11 12:41    [W:0.200 / U:0.024 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site