summaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
authorKeith Busch <keith.busch@intel.com>2014-09-22 13:46:19 -0600
committerJens Axboe <axboe@fb.com>2014-11-04 13:17:10 -0700
commit387caa5a2b11ecb1abbbec8ef9d798f757ba3e5f (patch)
tree5a85ff443ce826913b538833ff114c4bcd55af7d /drivers
parent60e0545cc92ce4172c7069d559568717f64af332 (diff)
downloadblackbird-obmc-linux-387caa5a2b11ecb1abbbec8ef9d798f757ba3e5f.tar.gz
blackbird-obmc-linux-387caa5a2b11ecb1abbbec8ef9d798f757ba3e5f.zip
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@intel.com> Signed-off-by: Matthew Wilcox <matthew.r.wilcox@intel.com> Signed-off-by: Jens Axboe <axboe@fb.com>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/block/nvme-core.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/block/nvme-core.c b/drivers/block/nvme-core.c
index 70be3a151eb7..0196fce0ddf5 100644
--- a/drivers/block/nvme-core.c
+++ b/drivers/block/nvme-core.c
@@ -2787,7 +2787,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);
OpenPOWER on IntegriCloud