提交 fdb1bb15 编写于 作者: H Heiko Carstens 提交者: Martin Schwidefsky

[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: NHeiko Carstens <heiko.carstens@de.ibm.com>
Signed-off-by: NMartin Schwidefsky <schwidefsky@de.ibm.com>
上级 693d92a1
...@@ -518,6 +518,8 @@ static void __init insert_increment(u16 rn, int standby, int assigned) ...@@ -518,6 +518,8 @@ static void __init insert_increment(u16 rn, int standby, int assigned)
return; return;
new_incr->rn = rn; new_incr->rn = rn;
new_incr->standby = standby; new_incr->standby = standby;
if (!standby)
new_incr->usecount = 1;
last_rn = 0; last_rn = 0;
prev = &sclp_mem_list; prev = &sclp_mem_list;
list_for_each_entry(incr, &sclp_mem_list, list) { list_for_each_entry(incr, &sclp_mem_list, list) {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册