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

From: Mark Brown
Date: Fri Sep 11 2015 - 06:29:11 EST


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.

Attachment: signature.asc
Description: Digital signature