s390/sclp: Remove MHP_OFFLINE_INACCESSIBLE

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>
pull/1354/merge
Sumanth Korikkar 2025-10-10 10:51:46 +02:00 committed by Heiko Carstens
parent ff18dcb19a
commit ce2071e02d
1 changed files with 1 additions and 1 deletions

View 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;