]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/commit
[S390] etr/stp: fix possible deadlock
authorHeiko Carstens <heiko.carstens@de.ibm.com>
Fri, 23 Jan 2009 15:40:26 +0000 (16:40 +0100)
committerHeiko Carstens <heiko.carstens@de.ibm.com>
Fri, 23 Jan 2009 15:40:29 +0000 (16:40 +0100)
commit179cb81aa1e9dc5444f678a6dd4dbb90c60322e1
treeb8f4c37049a357ba16fd94360ae3d4c2c8661810
parentf9a2f797fcde5a4aa818bd3ca8584fd1197e9c15
[S390] etr/stp: fix possible deadlock

Precreate stop_machine threads in case the machine supports ETR/STP.
Otherwise we might deadlock if a time sync operation gets scheduled
and the creation of stop_machine threads would cause disk I/O.
This is just the minimal fix.
The real fix would be to only precreate stop_machine threads if
ETR/STP is actually used. But that would be a rather large and
complicated patch.

Signed-off-by: Heiko Carstens <heiko.carstens@de.ibm.com>
arch/s390/kernel/time.c