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)
commit9f0128f9e7bf7b2929540d395daf8d823dc30c9f
tree524b297e3594e473482871c4b2bf3946d6d32ade
parent1b6a19b34d54d3d56b90423e4a7c60b971d70197
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