]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
s390/sclp: Remove MHP_OFFLINE_INACCESSIBLE
authorSumanth Korikkar <sumanthk@linux.ibm.com>
Fri, 10 Oct 2025 08:51:46 +0000 (10:51 +0200)
committerHeiko Carstens <hca@linux.ibm.com>
Tue, 14 Oct 2025 12:24:53 +0000 (14:24 +0200)
mhp_flag MHP_OFFLINE_INACCESSIBLE was used to mark memory as not
accessible until memory hotplug online phase begins.

Earlier, standby memory blocks were added upfront during boottime and
MHP_OFFLINE_INACCESSIBLE flag avoided page_init_poison() on memmap
during mhp addition phase.

However with dynamic runtime configuration of memory, standby memory can
be brought to accessible state before performing add_memory(). Hence,
remove MHP_OFFLINE_INACCESSIBLE.

Acked-by: Heiko Carstens <hca@linux.ibm.com>
Reviewed-by: David Hildenbrand <david@redhat.com>
Signed-off-by: Sumanth Korikkar <sumanthk@linux.ibm.com>
Signed-off-by: Heiko Carstens <hca@linux.ibm.com>
drivers/s390/char/sclp_mem.c

index 100d776bdffee20d990c0eb83ece82d26a3b0f10..3a7a69615d99d703a105deceac14f40fa917fe7e 100644 (file)
@@ -224,7 +224,7 @@ static ssize_t sclp_config_mem_store(struct kobject *kobj, struct kobj_attribute
                __arch_set_page_nodat((void *)__va(addr), block_size >> PAGE_SHIFT);
                rc = __add_memory(0, addr, block_size,
                                  sclp_mem->memmap_on_memory ?
-                                 MHP_MEMMAP_ON_MEMORY | MHP_OFFLINE_INACCESSIBLE : MHP_NONE);
+                                 MHP_MEMMAP_ON_MEMORY : MHP_NONE);
                if (rc) {
                        sclp_mem_change_state(addr, block_size, 0);
                        goto out_unlock;