nvme: separate command prep and issue
authorJens Axboe <axboe@kernel.dk>
Fri, 29 Oct 2021 20:34:11 +0000 (14:34 -0600)
committerJens Axboe <axboe@kernel.dk>
Thu, 16 Dec 2021 17:54:35 +0000 (10:54 -0700)
commit62451a2b2e7ea17c4a547ada6a5deebf8787a27a
treecd1778bf96ab27561b538f06ef0b5a81cb7f6b92
parent3233b94cf842984ea7e208d5be1ad2f2af02d495
nvme: separate command prep and issue

Add a nvme_prep_rq() helper to setup a command, and nvme_queue_rq() is
adapted to use this helper.

Reviewed-by: Hannes Reinecke <hare@suse.de>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
drivers/nvme/host/pci.c