Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

s390/dasd: make query host access interruptible

If the DASD device gets blocked for any reason, e.g. because it is reserved
somewhere, the host_access_count sysfs entry or the host_access_list
debugfs entry may sleep forever. Make it interruptible so that userspace
can use ^C to abort the operation.

Signed-off-by: Stefan Haberland <sth@linux.vnet.ibm.com>
Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>

authored by

Stefan Haberland and committed by
Martin Schwidefsky
f50af850 c020d722

+1 -1
+1 -1
drivers/s390/block/dasd_eckd.c
··· 5201 5201 5202 5202 cqr->buildclk = get_tod_clock(); 5203 5203 cqr->status = DASD_CQR_FILLED; 5204 - rc = dasd_sleep_on(cqr); 5204 + rc = dasd_sleep_on_interruptible(cqr); 5205 5205 if (rc == 0) { 5206 5206 *data = *host_access; 5207 5207 } else {