linux/drivers/nvme/target
Christoph Hellwig e9061c3978 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>
2019-11-04 10:56:42 -07:00
..
admin-cmd.c nvmet: Remove the data_len field from the nvmet_req struct 2019-11-04 10:56:42 -07:00
configfs.c nvmet: Fix use-after-free bug when a port is removed 2019-07-31 17:57:06 -07:00
core.c nvmet: Remove the data_len field from the nvmet_req struct 2019-11-04 10:56:42 -07:00
discovery.c nvmet: Remove the data_len field from the nvmet_req struct 2019-11-04 10:56:42 -07:00
fabrics-cmd.c nvmet: Remove the data_len field from the nvmet_req struct 2019-11-04 10:56:42 -07:00
fc.c nvme-fc and nvmet-fc: sync with FC-NVME-2 header changes 2019-11-04 10:56:40 -07:00
fcloop.c nvme-fcloop: resolve warnings on RCU usage and sleep warnings 2019-07-09 13:16:09 -07:00
io-cmd-bdev.c nvmet: Remove the data_len field from the nvmet_req struct 2019-11-04 10:56:42 -07:00
io-cmd-file.c nvmet: Remove the data_len field from the nvmet_req struct 2019-11-04 10:56:42 -07:00
Kconfig treewide: Add SPDX license identifier - Makefile/Kconfig 2019-05-21 10:50:46 +02:00
loop.c nvme: move common call to nvme_cleanup_cmd to core layer 2019-11-04 10:56:41 -07:00
Makefile nvmet: introduce target-side trace 2019-06-21 11:15:46 +02:00
nvmet.h nvmet: Remove the data_len field from the nvmet_req struct 2019-11-04 10:56:42 -07:00
rdma.c nvmet-rdma: add unlikely check at nvmet_rdma_map_sgl_keyed 2019-11-04 10:56:41 -07:00
tcp.c nvmet-tcp: Don't set the request's data_len 2019-11-04 10:56:41 -07:00
trace.c nvmet: trace: parse Get LBA Status command in detail 2019-08-29 12:55:01 -07:00
trace.h nvmet: introduce target-side trace 2019-06-21 11:15:46 +02:00