summaryrefslogtreecommitdiff
path: root/scripts/Makefile.thinlto
diff options
context:
space:
mode:
authorMike Rapoport (Microsoft) <rppt@kernel.org>2026-07-04 09:13:36 +0300
committerMartin K. Petersen (Oracle) <mkp@kernel.org>2026-09-01 22:31:03 -0400
commit0abe3fb1c5056b7f2f99178b23db8aa95dd03f85 (patch)
tree1e4763b120afac76053c1b356109e5ad3162fb58 /scripts/Makefile.thinlto
parentb4fe0d7d41eacf3c2ffa54eef3e5e93ac8777518 (diff)
downloadlinux-next-0abe3fb1c5056b7f2f99178b23db8aa95dd03f85.tar.gz
linux-next-0abe3fb1c5056b7f2f99178b23db8aa95dd03f85.zip
scsi: ipr: Use kmalloc() to allocate IPR dump buffer memory
IPR dump machinery allocates memory to save adapter's crash dump using __get_free_page(). This memory can be allocated with kmalloc() as there's nothing special about it to go directly to the page allocator. kmalloc() provides a better API that does not require ugly casts and kfree() does not need to know the size of the freed object. Replace use of __get_free_page() with kmalloc(). While on it, relax GFP_ATOMIC to GFP_NOIO for allocation of dump buffers. The allocations happen in a workqueue context, but with storage adapter being in a state where it can't handle I/O. Link: https://lore.kernel.org/all/635405e4-9423-4a25-a6e7-e03c8ea0bcbe@redhat.com Tested-by: Wen Xiong <wenxiong@linux.ibm.com> Reviewed-by: Hannes Reinecke <hare@kernel.org> Signed-off-by: Mike Rapoport (Microsoft) <rppt@kernel.org> Link: https://patch.msgid.link/20260704-b4-scsi-v2-3-7d2d21a810de@kernel.org Signed-off-by: Martin K. Petersen (Oracle) <mkp@kernel.org>
Diffstat (limited to 'scripts/Makefile.thinlto')
0 files changed, 0 insertions, 0 deletions