mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-04-27 08:43:56 +00:00
[S390] sclp/memory hotplug: fix initial usecount of increments
Fix initial usecount of attached and assigned storage increments so they can be set offline. Signed-off-by: Heiko Carstens <heiko.carstens@de.ibm.com> Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
This commit is contained in:
parent
693d92a1bb
commit
fdb1bb1575
1 changed files with 2 additions and 0 deletions
|
@ -518,6 +518,8 @@ static void __init insert_increment(u16 rn, int standby, int assigned)
|
|||
return;
|
||||
new_incr->rn = rn;
|
||||
new_incr->standby = standby;
|
||||
if (!standby)
|
||||
new_incr->usecount = 1;
|
||||
last_rn = 0;
|
||||
prev = &sclp_mem_list;
|
||||
list_for_each_entry(incr, &sclp_mem_list, list) {
|
||||
|
|
Loading…
Add table
Reference in a new issue