Re: [PATCH V2 11/16] block, bfq: reduce idling only in symmetric scenarios
From: Bart Van Assche <hidden>
Date: 2017-03-31 15:20:46
Also in:
lkml
From: Bart Van Assche <hidden>
Date: 2017-03-31 15:20:46
Also in:
lkml
On Fri, 2017-03-31 at 14:47 +0200, Paolo Valente wrote:
+=A0=A0=A0=A0=A0=A0=A0entity->weight_counter =3D kzalloc(sizeof(struct bf=
q_weight_counter),
+=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=
=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 GFP_ATOMIC);
+=A0=A0=A0=A0=A0=A0=A0entity->weight_counter->weight =3D entity->weight;
GFP_ATOMIC allocations are more likely to fail than GFP_KERNEL allocations. What will happen if kzalloc() returns NULL? Bart.=