From: Stefan Haberland Date: Thu, 2 Apr 2015 10:27:25 +0000 (+0200) Subject: s390/dasd: fix inability to set a DASD device offline X-Git-Tag: omap-for-v4.1/fixes-rc1~85^2~4 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f2608cd4a37479d11d0748f524a6a363ee38631f;p=pandora-kernel.git s390/dasd: fix inability to set a DASD device offline Fix ref counting for DASD devices leading to an inability to set a DASD device offline. Before a worker is scheduled the DASD device driver takes a reference to the device. If the worker was already scheduled this reference was never freed. Fix by giving the reference to the DASD device free when schedule_work() returns false. Signed-off-by: Stefan Haberland Signed-off-by: Martin Schwidefsky --- Reading git-diff-tree failed