]> git.baikalelectronics.ru Git - kernel.git/commit
nvmet: Remove the data_len field from the nvmet_req struct
authorChristoph Hellwig <hch@lst.de>
Wed, 23 Oct 2019 16:35:44 +0000 (10:35 -0600)
committerJens Axboe <axboe@kernel.dk>
Mon, 4 Nov 2019 17:56:42 +0000 (10:56 -0700)
commit2f404b57ea4bb4779cb6156ac273467c6a0f1a90
tree07ed5f1fff8c579ab7fff79387977102afa3d4ed
parentaaf8cf59a4d03db198432cfbaa97229e2563bf02
nvmet: Remove the data_len field from the nvmet_req struct

Instead of storing the expected length and checking it when it's
executed, just check the length inside the command themselves.

A new helper, nvmet_check_data_len() is created to help with this
check.

Signed-off-by: Christoph Hellwig <hch@lst.de>
[split patch, udpate changelog]
Signed-off-by: Logan Gunthorpe <logang@deltatee.com>
Signed-off-by: Keith Busch <kbusch@kernel.org>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
drivers/nvme/target/admin-cmd.c
drivers/nvme/target/core.c
drivers/nvme/target/discovery.c
drivers/nvme/target/fabrics-cmd.c
drivers/nvme/target/io-cmd-bdev.c
drivers/nvme/target/io-cmd-file.c
drivers/nvme/target/nvmet.h