Re: [PATCH 1/2] ipw2100: Use GFP_KERNEL instead of GFP_ATOMIC in some memory allocation
From: Kalle Valo
Date: Sun Aug 02 2020 - 11:19:41 EST
Christophe JAILLET <christophe.jaillet@xxxxxxxxxx> wrote:
> The call chain is:
> ipw2100_pci_init_one (the probe function)
> --> ipw2100_queues_allocate
> --> ipw2100_tx_allocate
>
> No lock is taken in the between.
> So it is safe to use GFP_KERNEL in 'ipw2100_tx_allocate()'.
>
> BTW, 'ipw2100_queues_allocate()' also calls 'ipw2100_msg_allocate()' which
> already allocates some memory using GFP_KERNEL.
>
> Signed-off-by: Christophe JAILLET <christophe.jaillet@xxxxxxxxxx>
2 patches applied to wireless-drivers-next.git, thanks.
9130559cf8db ipw2100: Use GFP_KERNEL instead of GFP_ATOMIC in some memory allocation
e52525c0c320 ipw2x00: switch from 'pci_' to 'dma_' API
--
https://patchwork.kernel.org/patch/11678101/
https://wireless.wiki.kernel.org/en/developers/documentation/submittingpatches