mbox series

[v2,0/2] null_blk: fix wrong use of nr_online_nodes

Message ID 20220520073747.1184091-1-liupeng256@huawei.com (mailing list archive)
Headers show
Series null_blk: fix wrong use of nr_online_nodes | expand

Message

Peng Liu May 20, 2022, 7:37 a.m. UTC
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(-)