]> git.proxmox.com Git - mirror_ubuntu-artful-kernel.git/commit
nvme: Fix a race condition related to stopping queues
authorBart Van Assche <bart.vanassche@sandisk.com>
Sat, 29 Oct 2016 00:23:19 +0000 (17:23 -0700)
committerJens Axboe <axboe@fb.com>
Wed, 2 Nov 2016 18:50:19 +0000 (12:50 -0600)
commit3174dd33fa8316d29f238f093291ca9bb25e6f58
treef4f2d0c3dc750d6de882b5a32867edeb51249edc
parent7b17c2f7292ba1f3f98dae3f7077f9e569653276
nvme: Fix a race condition related to stopping queues

Avoid that nvme_queue_rq() is still running when nvme_stop_queues()
returns.

Signed-off-by: Bart Van Assche <bart.vanassche@sandisk.com>
Cc: Keith Busch <keith.busch@intel.com>
Reviewed-by: Sagi Grimberg <sagi@grimberg.me>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Jens Axboe <axboe@fb.com>
drivers/nvme/host/core.c