[PATCH v2 0/2] null_blk: fix wrong use of nr_online_nodes
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
- To: <bhelgaas@xxxxxxxxxx>, <tglx@xxxxxxxxxxxxx>, <mingo@xxxxxxxxxx>, <bp@xxxxxxxxx>, <dave.hansen@xxxxxxxxxxxxxxx>, <x86@xxxxxxxxxx>, <hpa@xxxxxxxxx>, <lorenzo.pieralisi@xxxxxxx>, <guohanjun@xxxxxxxxxx>, <sudeep.holla@xxxxxxx>, <rafael@xxxxxxxxxx>, <lenb@xxxxxxxxxx>, <akpm@xxxxxxxxxxxxxxxxxxxx>, <logang@xxxxxxxxxxxx>, <martin.oliveira@xxxxxxxxxxxxx>, <thunder.leizhen@xxxxxxxxxx>, <axboe@xxxxxxxxx>, <kch@xxxxxxxxxx>, <ming.lei@xxxxxxxxxx>, <shinichiro.kawasaki@xxxxxxx>, <mcgrof@xxxxxxxxxx>, <jiangguoqing@xxxxxxxxxx>, <jpittman@xxxxxxxxxx>, <dave@xxxxxxxxxxxx>, <liupeng256@xxxxxxxxxx>, <wangkefeng.wang@xxxxxxxxxx>, <linux-block@xxxxxxxxxxxxxxx>, <linux-ia64@xxxxxxxxxxxxxxx>, <linux-kernel@xxxxxxxxxxxxxxx>, <linux-pci@xxxxxxxxxxxxxxx>, <linux-acpi@xxxxxxxxxxxxxxx>, <linux-arm-kernel@xxxxxxxxxxxxxxxxxxx>, <linux-mm@xxxxxxxxx>
- Subject: [PATCH v2 0/2] null_blk: fix wrong use of nr_online_nodes
- From: Peng Liu <liupeng256@xxxxxxxxxx>
- Date: Fri, 20 May 2022 07:37:45 +0000
Helper node_available() is introduced to judge whether a node can be
used, and it is used to fix the wrong use of nr_online_nodes when
numa node is sparse.
v1->v2:
Modify comments as suggested by Bjorn Helgaas.
Peng Liu (2):
numa: create node_available() helper
null_blk: fix wrong use of nr_online_nodes
arch/ia64/hp/common/sba_iommu.c | 2 +-
arch/x86/pci/acpi.c | 2 +-
drivers/acpi/arm64/iort.c | 2 +-
drivers/block/null_blk/main.c | 45 ++++++++++++++++++++-------------
drivers/pci/pci-sysfs.c | 2 +-
include/linux/nodemask.h | 3 +++
mm/mempolicy.c | 2 +-
7 files changed, 36 insertions(+), 22 deletions(-)
--
2.25.1
[Index of Archives]
[Linux Kernel]
[Sparc Linux]
[DCCP]
[Linux ARM]
[Yosemite News]
[Linux SCSI]
[Linux x86_64]
[Linux for Ham Radio]