Message ID | 20220913000901.959546-1-jeroendb@google.com (mailing list archive) |
---|---|
State | Accepted |
Commit | 8ccac4edc8da764389d4fc18b1df740892006557 |
Delegated to: | Netdev Maintainers |
Headers | show |
Series | [net] gve: Fix GFP flags when allocing pages | expand |
Hello: This patch was applied to netdev/net.git (master) by Jakub Kicinski <kuba@kernel.org>: On Mon, 12 Sep 2022 17:09:01 -0700 you wrote: > From: Shailend Chand <shailend@google.com> > > Use GFP_ATOMIC when allocating pages out of the hotpath, > continue to use GFP_KERNEL when allocating pages during setup. > > GFP_KERNEL will allow blocking which allows it to succeed > more often in a low memory enviornment but in the hotpath we do > not want to allow the allocation to block. > > [...] Here is the summary with links: - [net] gve: Fix GFP flags when allocing pages https://git.kernel.org/netdev/net/c/8ccac4edc8da You are awesome, thank you!
diff --git a/drivers/net/ethernet/google/gve/gve_rx_dqo.c b/drivers/net/ethernet/google/gve/gve_rx_dqo.c index 8c939628e2d8..2e6461b0ea8b 100644 --- a/drivers/net/ethernet/google/gve/gve_rx_dqo.c +++ b/drivers/net/ethernet/google/gve/gve_rx_dqo.c @@ -157,7 +157,7 @@ static int gve_alloc_page_dqo(struct gve_priv *priv, int err; err = gve_alloc_page(priv, &priv->pdev->dev, &buf_state->page_info.page, - &buf_state->addr, DMA_FROM_DEVICE, GFP_KERNEL); + &buf_state->addr, DMA_FROM_DEVICE, GFP_ATOMIC); if (err) return err;