From: Keith Busch Date: Tue, 10 Dec 2013 20:10:36 +0000 (-0700) Subject: NVMe: Device resume error handling X-Git-Tag: v3.14-rc2~23^2~10 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9a6b94584de1a0467d85b435df9c744c5c45a270;p=pandora-kernel.git NVMe: Device resume error handling Adds controller error handling on resume power management. If the device fails to initialize, the device is queued for a reset. If the reset fails, a thread is spawned to remove the pci device. If the device resumes as "busy", the device is responding to admin commands but will not create IO queues. In this case, we need to remove the gendisks and free the IO queues since they can't be used and may be holding bios in their lists. From testing, the dma pools require a pci device so this had to change the pci driver 'remove' to release the dma resources in line with that call instead of after all references to the device are released. Signed-off-by: Keith Busch Signed-off-by: Matthew Wilcox --- Reading git-diff-tree failed