lkml.org 
[lkml]   [2017]   [Mar]   [31]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
SubjectRe: [PATCH V2 11/16] block, bfq: reduce idling only in symmetric scenarios
Date
On Fri, 2017-03-31 at 14:47 +0200, Paolo Valente wrote:
> +       entity->weight_counter = kzalloc(sizeof(struct bfq_weight_counter),
> +                                        GFP_ATOMIC);
> +       entity->weight_counter->weight = entity->weight;

GFP_ATOMIC allocations are more likely to fail than GFP_KERNEL allocations.
What will happen if kzalloc() returns NULL?

Bart.
\
 
 \ /
  Last update: 2017-03-31 17:20    [W:0.153 / U:0.236 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site