[S390] sclp/memory hotplug: fix initial usecount of increments
authorHeiko Carstens <heiko.carstens@de.ibm.com>
Tue, 10 May 2011 15:13:37 +0000 (17:13 +0200)
committerMartin Schwidefsky <sky@mschwide.boeblingen.de.ibm.com>
Tue, 10 May 2011 15:13:42 +0000 (17:13 +0200)
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>
drivers/s390/char/sclp_cmd.c

index 4b60ede07f0e0f9738d22c70d53c3393eff1b37e..be55fb2b1b1c58f78a3df48ad8ac7be544f3ec51 100644 (file)
@@ -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) {