Re: [PATCH v1] block: switch numa_node to int in blk_mq_hw_ctx and init_request
Jens Axboe <[email protected]>
| Newsgroups | dev.linux.lists.dm-devel,dev.linux.lists.asahi,org.infradead.lists.linux-arm-kernel,org.infradead.lists.linux-mtd,org.infradead.lists.linux-nvme,org.kernel.vger.linux-block,org.kernel.vger.linux-kernel,org.kernel.vger.linux-mmc,org.kernel.vger.linux-scsi |
|---|---|
| Message-ID | <177981344077.464267.4670805396521914701.b4-ty@b4> |
On Sat, 23 May 2026 12:52:35 +0000, Mateusz Nowicki wrote:
> numa_node in blk_mq_hw_ctx and the matching argument of
> blk_mq_ops::init_request can be NUMA_NO_NODE (-1). Declared as
> unsigned int, NUMA_NO_NODE becomes UINT_MAX and walks off
> nvme_dev::descriptor_pools[] on CONFIG_NUMA=n [1].
>
> Switch the field and the callback prototype to int and update all
> in-tree init_request implementations. No functional change:
> cpu_to_node(), kmalloc_node() and blk_alloc_flush_queue() already
> take int.
>
> [...]
Applied, thanks!
[1/1] block: switch numa_node to int in blk_mq_hw_ctx and init_request
commit: 65e1c8f96ad1a1f3b72e8a91d1341d570f91d985
Best regards,
--
Jens Axboe