From: Stefan Haberland Date: Fri, 26 Feb 2010 21:37:46 +0000 (+0100) Subject: [S390] dasd: fix online/offline race X-Git-Tag: v2.6.34-rc1~268^2~10 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9eb251225ab4dbea3119cfcf4c5194eed223a740;p=pandora-kernel.git [S390] dasd: fix online/offline race Setting a DASD online and offline in quick succession may cause a kernel panic or let the chhccwdev command wait forever. The Online process is split into two parts. After the first part is finished the offline process may be called. This may result in a situation where the second online processing part tries to set the DASD offline as well. Use a mutex to protect online and offline against each other. Also correct some checking. Signed-off-by: Stefan Haberland Signed-off-by: Martin Schwidefsky --- Reading git-diff-tree failed