Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit f50af850 authored by Stefan Haberland's avatar Stefan Haberland Committed by Martin Schwidefsky
Browse files

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: default avatarStefan Haberland <sth@linux.vnet.ibm.com>
Signed-off-by: default avatarMartin Schwidefsky <schwidefsky@de.ibm.com>
parent c020d722
Loading
Loading
Loading
Loading
+1 −1
Original line number Original line Diff line number Diff line
@@ -5201,7 +5201,7 @@ static int dasd_eckd_query_host_access(struct dasd_device *device,


	cqr->buildclk = get_tod_clock();
	cqr->buildclk = get_tod_clock();
	cqr->status = DASD_CQR_FILLED;
	cqr->status = DASD_CQR_FILLED;
	rc = dasd_sleep_on(cqr);
	rc = dasd_sleep_on_interruptible(cqr);
	if (rc == 0) {
	if (rc == 0) {
		*data = *host_access;
		*data = *host_access;
	} else {
	} else {