Jian Wen
730fffce4f
devlink: use kvzalloc() to allocate devlink instance resources
...
During live migration of a virtual machine, the SR-IOV VF need to be
re-registered. It may fail when the memory is badly fragmented.
The related log is as follows.
kernel: hv_netvsc 6045bdaa-c0d1-6045-bdaa-c0d16045bdaa eth0: VF slot 1 added
...
kernel: kworker/0:0: page allocation failure: order:7, mode:0x40dc0(GFP_KERNEL|__GFP_COMP|__GFP_ZERO), nodemask=(null),cpuset=/,mems_allowed=0
kernel: CPU: 0 PID: 24006 Comm: kworker/0:0 Tainted: G E 5.4...x86_64 #1
kernel: Hardware name: Microsoft Corporation Virtual Machine/Virtual Machine, BIOS 090008 12/07/2018
kernel: Workqueue: events work_for_cpu_fn
kernel: Call Trace:
kernel: dump_stack+0x8b/0xc8
kernel: warn_alloc+0xff/0x170
kernel: __alloc_pages_slowpath+0x92c/0xb2b
kernel: ? get_page_from_freelist+0x1d4/0x1140
kernel: __alloc_pages_nodemask+0x2f9/0x320
kernel: alloc_pages_current+0x6a/0xb0
kernel: kmalloc_order+0x1e/0x70
kernel: kmalloc_order_trace+0x26/0xb0
kernel: ? __switch_to_asm+0x34/0x70
kernel: __kmalloc+0x276/0x280
kernel: ? _raw_spin_unlock_irqrestore+0x1e/0x40
kernel: devlink_alloc+0x29/0x110
kernel: mlx5_devlink_alloc+0x1a/0x20 [mlx5_core]
kernel: init_one+0x1d/0x650 [mlx5_core]
kernel: local_pci_probe+0x46/0x90
kernel: work_for_cpu_fn+0x1a/0x30
kernel: process_one_work+0x16d/0x390
kernel: worker_thread+0x1d3/0x3f0
kernel: kthread+0x105/0x140
kernel: ? max_active_store+0x80/0x80
kernel: ? kthread_bind+0x20/0x20
kernel: ret_from_fork+0x3a/0x50
Signed-off-by: Jian Wen <wenjian1@xiaomi.com>
Link: https://lore.kernel.org/r/20240327082128.942818-1-wenjian1@xiaomi.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
2024-03-29 12:24:38 -07:00
..
2024-02-09 14:12:01 -08:00
2023-12-13 05:44:30 +09:00
2023-10-28 11:29:28 +01:00
2024-02-26 11:46:12 +00:00
2023-12-26 20:31:01 +00:00
2024-02-09 14:12:01 -08:00
2024-02-02 12:44:16 +00:00
2024-03-08 11:06:14 -05:00
2024-03-18 14:18:47 -07:00
2024-03-14 18:03:09 -07:00
2024-01-05 08:06:35 -08:00
2024-02-20 15:32:45 +01:00
2024-03-06 12:43:01 +01:00
2024-03-29 08:27:50 -07:00
2024-03-21 14:41:00 -07:00
2024-03-29 12:24:38 -07:00
2024-01-11 10:07:29 -08:00
2024-03-07 20:37:13 -08:00
2024-03-06 20:40:20 -08:00
2024-02-08 18:32:29 -08:00
2024-03-25 19:51:56 -07:00
2024-03-08 20:35:33 -08:00
2023-12-15 10:50:18 +00:00
2024-03-29 12:18:24 -07:00
2024-03-29 12:18:24 -07:00
2024-03-19 11:38:27 -07:00
2024-03-11 09:53:22 +00:00
2024-02-09 14:12:01 -08:00
2024-03-11 09:53:22 +00:00
2024-01-30 13:49:09 +01:00
2024-03-25 15:23:07 +01:00
2024-03-06 21:01:26 +01:00
2024-02-29 14:24:56 -08:00
2024-03-14 18:03:09 -07:00
2024-03-11 10:37:40 +00:00
2023-11-18 15:00:51 +00:00
2024-03-28 03:54:01 +01:00
2024-02-28 19:37:34 -08:00
2024-03-11 15:48:34 -07:00
2024-03-07 10:36:58 +01:00
2024-03-22 09:41:39 +00:00
2024-02-09 12:54:38 -08:00
2024-03-18 12:29:53 +00:00
2024-02-22 09:05:50 +01:00
2023-12-29 08:43:59 +00:00
2024-01-01 18:41:29 +00:00
2024-03-19 12:15:35 +01:00
2023-12-21 22:17:23 +01:00
2023-12-15 11:59:53 +00:00
2024-03-14 13:09:53 +01:00
2024-03-29 09:46:39 +00:00
2024-03-07 21:12:43 -08:00
2024-03-29 09:48:23 +00:00
2024-03-16 11:44:00 -07:00
2024-02-16 09:36:37 +00:00
2024-02-15 13:18:19 +01:00
2024-03-26 20:48:24 -07:00
2024-03-29 08:28:42 -07:00
2024-01-23 15:13:54 +01:00
2024-03-25 15:23:06 +01:00
2024-03-11 09:53:22 +00:00
2024-03-02 20:50:59 -08:00
2024-03-18 11:56:11 +01:00
2023-12-12 14:24:14 +01:00
2024-02-18 10:19:21 +00:00
2024-01-31 16:41:16 -08:00
2024-03-14 16:48:53 -07:00