]> www.infradead.org Git - users/dwmw2/linux.git/commit
nvme-pci: allocate nvme_command within driver pdu
authorKeith Busch <kbusch@kernel.org>
Wed, 17 Mar 2021 20:37:02 +0000 (13:37 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 29 Jun 2022 06:59:50 +0000 (08:59 +0200)
commit938f594266a671b7cc90bf96d2bee27f9e4f3339
tree5e4ab463d34a4a8e23afe7791a16fb486d9e6ae9
parentba388d4e9a684fc7a84b7cbdf9887efe11f4fde5
nvme-pci: allocate nvme_command within driver pdu

[ Upstream commit af7fae857ea22e9c2aef812e1321d9c5c206edde ]

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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/nvme/host/pci.c