From: Keith Busch Date: Fri, 18 Jul 2014 17:40:20 +0000 (-0600) Subject: NVMe: Fix filesystem sync deadlock on removal X-Git-Tag: omap-for-v3.19/fixes-rc1~94^2~46 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=302c6727e5eb4d0be0e02d077b65feb3e73ea254;p=pandora-kernel.git NVMe: Fix filesystem sync deadlock on removal This changes the order of deleting the gendisks so it happens after the nvme IO queues are freed. If a device is removed while a filesystem has associated dirty data, the removal will wait on these to complete before proceeding from del_gendisk, which could have caused deadlock before. The implication of this is that an orderly removal of a responsive device won't necessarily wait for dirty data to be written, but we are not guaranteed the device is even going to respond at this point either. Signed-off-by: Keith Busch Signed-off-by: Matthew Wilcox Signed-off-by: Jens Axboe --- Reading git-diff-tree failed