]> 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)
commit75d0a42d870f9e5cb15f02ab8c63148a412c5f54
treea89d3e62d9336a8a3f728883c47e8ea7c4f889fc
parentf1dd87f5aa95e71fe6c4a08f748e48104ccb0c61
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