]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitf1927b55f82429be4e12a205d90e512feb7eb99e
treea89d3e62d9336a8a3f728883c47e8ea7c4f889fc
parenta19df10299ec86cc35d90ad87d6817932045cf0c
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