]> www.infradead.org Git - users/jedix/linux-maple.git/commit
nvme: refactor nvme_queue_rq
authorChristoph Hellwig <hch@lst.de>
Fri, 16 Oct 2015 05:58:38 +0000 (07:58 +0200)
committerChuck Anderson <chuck.anderson@oracle.com>
Tue, 20 Sep 2016 23:02:59 +0000 (16:02 -0700)
commita9b1ee8cfae7126048effc0df4d5e58d490a3fd1
tree253dbf88ee1f29fea6b3bea8120093bf8c40f8b1
parentf21a357176c42b54a34c025f3173f36a7d4c1c30
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>
Orabug: 24691685
mainline commit ba1ca37ea4e320c108c356eb8c91ac652afc57dd
Conflicts:
    Adding GFP_ATOMIC to nvme_setup_prps and replacing
REQ_TYPE_DRV_PRIV with REQ_TYPE_SPECIAL

Signed-off-by: Ashok Vairavan <ashok.vairavan@oracle.com>
drivers/nvme/host/pci.c