]> 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)
commita91bce8dff97766b4e0b4b06f574d15128890cb8
treea100bac8bd2063c347148beab68365c804e09def
parent393cdc191ac85f6da1955673f9552004bf5e1226
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