s390/time: avoid races when updating tb_update_count
authorDavid Hildenbrand <dahi@linux.vnet.ibm.com>
Mon, 18 Jul 2016 15:10:17 +0000 (17:10 +0200)
committerMartin Schwidefsky <schwidefsky@de.ibm.com>
Mon, 29 Aug 2016 09:04:58 +0000 (11:04 +0200)
commit67f03de5f0ad6b4b0481bb43e4a819d1a441900b
tree085d38da1501517aea60964199638d4fa264983e
parent0c00b1e00bba9c9046bee4e487ed19360da9ded0
s390/time: avoid races when updating tb_update_count

The increment might not be atomic and we're not holding the
timekeeper_lock. Therefore we might lose an update to count, resulting in
VDSO being trapped in a loop. As other archs also simply update the
values and count doesn't seem to have an impact on reloading of these
values in VDSO code, let's just remove the update of tb_update_count.

Suggested-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
Signed-off-by: David Hildenbrand <dahi@linux.vnet.ibm.com>
Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
arch/s390/kernel/time.c