Skip to contentSkip to conversation

acpi_bus_generate_genetlink_event

DISCUSSION Andrew Morton 2 participants 2 messages Jul 19, 2007 – Jul 20, 2007 ACPI

lore
Share & tools
lore
#0 lore raw

It's quite sad that this uses GFP_ATOMIC. Because GFP_ATOMIC is quite unreliable.

Is it just not possible to use GFP_KERNEL here?

If _any_ of the callers of this function could have used GFP_KERNEL then we could at least pass the gfp_t into this function to allow it to use the stronger form where it can do so.

#1 lore raw
Quoted 5 lines · Andrew Morton

It's quite sad that this uses GFP_ATOMIC. Because GFP_ATOMIC is quite unreliable.

Is it just not possible to use GFP_KERNEL here?

I thought of this problem before,
but GFP_ATOMIC is required in some cases.

Quoted 6 lines

If _any_ of the callers of this function could have used GFP_KERNEL then we
could at least pass the gfp_t into this function to allow it to use the
stronger form where it can do so.

That makes sense. I'll send an incremental patch soon.

Thanks,
Rui