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 17:17:24 +0000 (11:17 -0600)
commita5adda93a03388e8de3aef2b7e386b2564805e24
treef4f2d0c3dc750d6de882b5a32867edeb51249edc
parent4b9744f7e0fa55f1c0c1d7ab5a5bd6d5996babda
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