]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit8a943f6077a90adebfc4305cb66fcf08376d045c
treea100bac8bd2063c347148beab68365c804e09def
parent01e5d1cdb36518bf00f5b745ac401e3a883a5b87
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