nvme/pci: Use async_schedule for initial reset work
authorKeith Busch <keith.busch@intel.com>
Fri, 27 Apr 2018 19:42:52 +0000 (13:42 -0600)
committerKeith Busch <keith.busch@intel.com>
Wed, 2 May 2018 14:32:24 +0000 (08:32 -0600)
commit1811977568e0f59d145da087e45f3dca09dab1c3
treea89d3e62d9336a8a3f728883c47e8ea7c4f889fc
parentea48e877994f086af481427bac110aa63686c3ce
nvme/pci: Use async_schedule for initial reset work

This patch schedules the initial controller reset in an async_domain
so that it can be synchronized from wait_for_device_probe(). This way
the kernel waits for the initial nvme controller scan to complete for
all devices before proceeding with the boot sequence, which may have
nvme dependencies.

Reported-by: Mikulas Patocka <mpatocka@redhat.com>
Tested-by: Mikulas Patocka <mpatocka@redhat.com>
Signed-off-by: Keith Busch <keith.busch@intel.com>
drivers/nvme/host/pci.c