]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commit - drivers/nvme/host/pci.c
nvme: refactor nvme_queue_rq
authorChristoph Hellwig <hch@lst.de>
Fri, 16 Oct 2015 05:58:38 +0000 (07:58 +0200)
committerJens Axboe <axboe@fb.com>
Tue, 1 Dec 2015 17:59:39 +0000 (10:59 -0700)
commitba1ca37ea4e320c108c356eb8c91ac652afc57dd
treeb9294d06f7031b254c18d86a78234e703c2e0d1c
parent69d2b571746d1c3fa10b7a0aa00859b296a98d12
nvme: refactor nvme_queue_rq

This "backports" the structure I've used for the fabrics driver.  It
mostly started out as a cleanup so that I could actually understand
the code, but I think it also qualifies as a micro-optimization due
to the reduced time we hold q_lock and disable interrupts.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Keith Busch <keith.busch@intel.com>
Signed-off-by: Jens Axboe <axboe@fb.com>
drivers/nvme/host/pci.c