nvme-pci: allocate nvme_command within driver pdu
authorKeith Busch <kbusch@kernel.org>
Wed, 17 Mar 2021 20:37:02 +0000 (13:37 -0700)
committerChristoph Hellwig <hch@lst.de>
Fri, 2 Apr 2021 16:48:27 +0000 (18:48 +0200)
commitaf7fae857ea22e9c2aef812e1321d9c5c206edde
tree3c29d417b401c8ed0044abb85dfa4997a19e996a
parent48b4c010c85bbd319fbcae79b2d602857a2e9345
nvme-pci: allocate nvme_command within driver pdu

Except for pci, all the nvme transport drivers allocate a command within
the driver's pdu. Align pci with everyone else by allocating the nvme
command within pci's pdu and replace the .queue_rq() stack variable with
this.

Signed-off-by: Keith Busch <kbusch@kernel.org>
Reviewed-by: Jens Axboe <axboe@kernel.dk>
Reviewed-by: Sagi Grimberg <sagi@grimberg.me>
Reviewed-by: Chaitanya Kulkarni <chaitanya.kulkarni@wdc.com>
Reviewed-by: Himanshu Madhani <himanshu.madhani@oracle.com>
Signed-off-by: Christoph Hellwig <hch@lst.de>
drivers/nvme/host/pci.c