NVMe: Fix device probe waiting on kthread
Subsystems (2)
PATCH 1/1 NVMe: Fix device probe waiting on kthread
If we ever do parallel device probing, we need to wake up all processes waiting for nvme kthread to start, not just one. This is currently serialized so the bug is not reachable today, but fixing this anyway in the hopes we implement parallel or asynchronous probe in the future.
Signed-off-by Keith Busch <keith.busch at intel.com>
--- drivers/block/nvme-core.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/block/nvme-core.c +1 -1
@@ -2765,7 +2765,7 @@ static int nvme_dev_start(struct nvme_dev *dev)if (start_thread) { nvme_thread =kthread_run (nvme_kthread,NULL ,"nvme" ); -wake_up (&nvme_kthread_wait); +wake_up_all (&nvme_kthread_wait); }else wait_event_killable (nvme_kthread_wait, nvme_thread);
Signature · 1 line
1.7.10.4