]> git.baikalelectronics.ru Git - kernel.git/commit
s390/sclp: add timeout for queued requests
authorGerald Schaefer <gerald.schaefer@de.ibm.com>
Mon, 31 Mar 2014 14:18:29 +0000 (16:18 +0200)
committerMartin Schwidefsky <schwidefsky@de.ibm.com>
Tue, 1 Apr 2014 11:25:26 +0000 (13:25 +0200)
commitce4a3036b2c5492a0ea26567be132aedb37f823b
tree524b297e3594e473482871c4b2bf3946d6d32ade
parent49b470a1392d88153b3d9af91273d5c9aed30805
s390/sclp: add timeout for queued requests

This patch adds a timeout option for queued requests and introduces
sclp_sync_request_timeout() to use this timer. With this, blocking the
system too long, e.g. during an SE reboot, can be avoided in critical
situations like CPU and memory hotplug.
Since there is no way to cancel a running request, this timeout only
applies to queued requests that have not yet been started.

Reviewed-by: Peter Oberparleiter <oberpar@linux.vnet.ibm.com>
Signed-off-by: Gerald Schaefer <gerald.schaefer@de.ibm.com>
Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
drivers/s390/char/sclp.c
drivers/s390/char/sclp.h
drivers/s390/char/sclp_cmd.c