From: Heiko Carstens Date: Tue, 10 May 2011 15:13:37 +0000 (+0200) Subject: [S390] sclp/memory hotplug: fix initial usecount of increments X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=fdb1bb157525907163e2a0c96fe8bb19fbe867a8;p=GitHub%2FLineageOS%2Fandroid_kernel_motorola_exynos9610.git [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 Signed-off-by: Martin Schwidefsky --- diff --git a/drivers/s390/char/sclp_cmd.c b/drivers/s390/char/sclp_cmd.c index 4b60ede07f0e..be55fb2b1b1c 100644 --- a/drivers/s390/char/sclp_cmd.c +++ b/drivers/s390/char/sclp_cmd.c @@ -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) {