linux/drivers/s390
Farhan Ali d1ffa760d2 vfio-ccw: Prevent quiesce function going into an infinite loop
The quiesce function calls cio_cancel_halt_clear() and if we
get an -EBUSY we go into a loop where we:
	- wait for any interrupts
	- flush all I/O in the workqueue
	- retry cio_cancel_halt_clear

During the period where we are waiting for interrupts or
flushing all I/O, the channel subsystem could have completed
a halt/clear action and turned off the corresponding activity
control bits in the subchannel status word. This means the next
time we call cio_cancel_halt_clear(), we will again start by
calling cancel subchannel and so we can be stuck between calling
cancel and halt forever.

Rather than calling cio_cancel_halt_clear() immediately after
waiting, let's try to disable the subchannel. If we succeed in
disabling the subchannel then we know nothing else can happen
with the device.

Suggested-by: Eric Farman <farman@linux.ibm.com>
Signed-off-by: Farhan Ali <alifm@linux.ibm.com>
Message-Id: <4d5a4b98ab1b41ac6131b5c36de18b76c5d66898.1555449329.git.alifm@linux.ibm.com>
Reviewed-by: Eric Farman <farman@linux.ibm.com>
Acked-by: Halil Pasic <pasic@linux.ibm.com>
Signed-off-by: Cornelia Huck <cohuck@redhat.com>
2019-04-24 14:18:51 +02:00
..
block s390/dasd: Fix capacity calculation for large volumes 2019-03-29 07:23:44 +01:00
char s390 updates for the 5.1 merge window 2019-03-05 11:13:10 -08:00
cio vfio-ccw: Prevent quiesce function going into an infinite loop 2019-04-24 14:18:51 +02:00
crypto s390: zcrypt: initialize variables before_use 2019-04-11 13:37:30 +02:00
net s390/qeth: be drop monitor friendly 2019-03-18 18:34:45 -07:00
scsi s390 updates for the 5.1 merge window 2019-03-05 11:13:10 -08:00
virtio virtio-ccw: wire up ->bus_name callback 2019-03-06 11:19:56 -05:00
Makefile kbuild: rename built-in.o to built-in.a 2018-03-26 02:01:19 +09:00