s390/cmf: set_schib_wait add timeout
authorSebastian Ott <sebott@linux.vnet.ibm.com>
Tue, 5 Sep 2017 12:22:48 +0000 (14:22 +0200)
committerMartin Schwidefsky <schwidefsky@de.ibm.com>
Thu, 28 Sep 2017 05:29:41 +0000 (07:29 +0200)
commitadc69b4d76ee8a7065c7c637584b39ace265ffab
treea100bac8bd2063c347148beab68365c804e09def
parentb08e19defc10befc50af09771ff0b086f2a72138
s390/cmf: set_schib_wait add timeout

When enabling channel measurement fails with a busy condition we wait
for the next interrupt to arrive before we retry the operation. For
devices which usually don't create interrupts we wait forever.

Although the waiting is done interruptible that behavior is not
expected and confused some users. Abort the operation after a 10s
timeout.

Signed-off-by: Sebastian Ott <sebott@linux.vnet.ibm.com>
Reviewed-by: Peter Oberparleiter <oberpar@linux.vnet.ibm.com>
Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
drivers/s390/cio/cmf.c