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>
Thu, 18 Mar 2021 05:17:51 +0000 (06:17 +0100)
commit089c5da559ad0710a4af6bdb378ea340b870f4e5
tree65b4364deb13865c68d8f8f85a35d5676d1dcc9e
parent23a0c86a05d78d6b978caba8ed9c6a12bca0e8ea
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