NVMe: Unify SQ entry writing and doorbell ringing
authorJon Derrick <jonathan.derrick@intel.com>
Mon, 20 Jul 2015 16:14:08 +0000 (10:14 -0600)
committerJens Axboe <axboe@fb.com>
Tue, 21 Jul 2015 15:40:09 +0000 (09:40 -0600)
commit498c43949c7b8f57e0afb8195019cf5a7ba72de0
treee8f8806ac007f39d9786584b94a04fb2e87ff332
parent0034af036554c39eefd14d835a8ec3496ac46712
NVMe: Unify SQ entry writing and doorbell ringing

This patch changes sq_cmd writers to instead create their command on
the stack. __nvme_submit_cmd copies the sq entry to the queue and writes
the doorbell.

Signed-off-by: Jon Derrick <jonathan.derrick@intel.com>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Jens Axboe <axboe@fb.com>
drivers/block/nvme-core.c