NVMe: Memory barrier before queue_count is incremented
authorJon Derrick <jonathan.derrick@intel.com>
Wed, 27 May 2015 18:26:23 +0000 (12:26 -0600)
committerJens Axboe <axboe@fb.com>
Fri, 5 Jun 2015 16:33:34 +0000 (10:33 -0600)
commit36a7e993eedb2c3f11de3b686b351f75e1edbbb5
treef073262e2a058db7a77d4490d422711e8e3c6e46
parent4cc06521ee1f153e0d292413a5bff7bbbdee92d0
NVMe: Memory barrier before queue_count is incremented

Protects against reordering and/or preempting which would allow the
kthread to access the queue descriptor before it is set up

Signed-off-by: Jon Derrick <jonathan.derrick@intel.com>
Acked-by: Keith Busch <keith.busch@intel.com>
Signed-off-by: Jens Axboe <axboe@fb.com>
drivers/block/nvme-core.c