]> git.baikalelectronics.ru Git - kernel.git/commit
nvmet-tcp: Don't set the request's data_len
authorLogan Gunthorpe <logang@deltatee.com>
Wed, 23 Oct 2019 16:35:40 +0000 (10:35 -0600)
committerJens Axboe <axboe@kernel.dk>
Mon, 4 Nov 2019 17:56:41 +0000 (10:56 -0700)
commitcaf319395de69f57bb8df5177595710607c5a740
tree1d9d320a05f26dcf68aa7d4e0237fc5d1e853b58
parent7517474ae48136179e0c3b78257ba7003a563b56
nvmet-tcp: Don't set the request's data_len

It's not apprporiate for the transports to set the data_len
field of the request which is only used by the core.

In this case, just use a variable on the stack to store the
length of the sgl for comparison.

Reviewed-by: Christoph Hellwig <hch@lst.de>
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/tcp.c