NVMe: Fix filesystem deadlock on removal
authorKeith Busch <keith.busch@intel.com>
Thu, 18 Jun 2015 19:36:40 +0000 (13:36 -0600)
committerJens Axboe <axboe@fb.com>
Sat, 27 Jun 2015 17:42:54 +0000 (11:42 -0600)
commit3399a3f7464a624db1b365dbce0fef0ef4636c05
tree33d1342c9d2639948baeb9cabb22009e6a663612
parentde3eff2bad56f0a29d3915105223d368f2bbc94e
NVMe: Fix filesystem deadlock on removal

Move gendisk deletion before controller shutdown so filesystem may sync
dirty pages. Before, this would deadlock trying to allocate requests
on frozen queues that are about to be deleted.

Signed-off-by: Keith Busch <keith.busch@intel.com>
Signed-off-by: Jens Axboe <axboe@fb.com>
drivers/block/nvme-core.c