[S390] dasd: Prevent deadlock during suspend/resume.
authorStefan Haberland <stefan.haberland@de.ibm.com>
Wed, 5 Jan 2011 11:48:05 +0000 (12:48 +0100)
committerMartin Schwidefsky <sky@mschwide.boeblingen.de.ibm.com>
Wed, 5 Jan 2011 11:47:30 +0000 (12:47 +0100)
commit6f272b9cec285a9610a2acf101f694bc58bed37e
tree5c333d47bfaefa34ccd827744f35381133f4444b
parent5a27e60dec59a95bd7f8ae9a19ae2ede4f76395b
[S390] dasd: Prevent deadlock during suspend/resume.

The freeze callback may set a stop bit so that a worker thread could
not start I/O. The discipline specific freeze function waits for the
worker to be completed.
Set the stop_bit after the discipline specific freeze function has
returned and no worker is running.

Signed-off-by: Stefan Haberland <stefan.haberland@de.ibm.com>
Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
drivers/s390/block/dasd.c