mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-06-02 08:42:22 -04:00
eth: fbnic: Use GFP_KERNEL to allocting mbx pages
Replace GFP_ATOMIC with GFP_KERNEL for mailbox RX page allocation. Since interrupt handler is threaded GFP_KERNEL is a safe option to reduce allocation failures. Also remove __GFP_NOWARN so the kernel reports a warning on allocation failure to aid debugging. Signed-off-by: Mohsin Bashir <mohsin.bashr@gmail.com> Link: https://patch.msgid.link/20260115003353.4150771-2-mohsin.bashr@gmail.com Signed-off-by: Jakub Kicinski <kuba@kernel.org>
This commit is contained in:
committed by
Jakub Kicinski
parent
677a51790b
commit
bafae5de41
@@ -205,8 +205,7 @@ static int fbnic_mbx_alloc_rx_msgs(struct fbnic_dev *fbd)
|
||||
while (!err && count--) {
|
||||
struct fbnic_tlv_msg *msg;
|
||||
|
||||
msg = (struct fbnic_tlv_msg *)__get_free_page(GFP_ATOMIC |
|
||||
__GFP_NOWARN);
|
||||
msg = (struct fbnic_tlv_msg *)__get_free_page(GFP_KERNEL);
|
||||
if (!msg) {
|
||||
err = -ENOMEM;
|
||||
break;
|
||||
|
||||
Reference in New Issue
Block a user