lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <20220520073747.1184091-1-liupeng256@huawei.com>
Date:   Fri, 20 May 2022 07:37:45 +0000
From:   Peng Liu <liupeng256@...wei.com>
To:     <bhelgaas@...gle.com>, <tglx@...utronix.de>, <mingo@...hat.com>,
        <bp@...en8.de>, <dave.hansen@...ux.intel.com>, <x86@...nel.org>,
        <hpa@...or.com>, <lorenzo.pieralisi@....com>,
        <guohanjun@...wei.com>, <sudeep.holla@....com>,
        <rafael@...nel.org>, <lenb@...nel.org>,
        <akpm@...ux-foundation.org>, <logang@...tatee.com>,
        <martin.oliveira@...eticom.com>, <thunder.leizhen@...wei.com>,
        <axboe@...nel.dk>, <kch@...dia.com>, <ming.lei@...hat.com>,
        <shinichiro.kawasaki@....com>, <mcgrof@...nel.org>,
        <jiangguoqing@...inos.cn>, <jpittman@...hat.com>,
        <dave@...olabs.net>, <liupeng256@...wei.com>,
        <wangkefeng.wang@...wei.com>, <linux-block@...r.kernel.org>,
        <linux-ia64@...r.kernel.org>, <linux-kernel@...r.kernel.org>,
        <linux-pci@...r.kernel.org>, <linux-acpi@...r.kernel.org>,
        <linux-arm-kernel@...ts.infradead.org>, <linux-mm@...ck.org>
Subject: [PATCH v2 0/2] null_blk: fix wrong use of nr_online_nodes

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

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ