From: Lin Ming Date: Mon, 5 Dec 2011 01:20:26 +0000 (+0800) Subject: [SCSI] sd: check runtime PM status in sd_shutdown X-Git-Tag: v3.3-rc1~128^2~13 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=54f57588463db1105f4a93b2902a6f95cb8f796a;p=pandora-kernel.git [SCSI] sd: check runtime PM status in sd_shutdown sd_shutdown is called during reboot/poweroff. It may fail if parent device, for example, ata port, was runtime suspended. Fix it by checking runtime PM status of sd. Exit immediately if sd was runtime suspended already. Acked-by: Alan Stern Signed-off-by: Lin Ming Signed-off-by: Jeff Garzik --- Reading git-diff-tree failed