]> git.baikalelectronics.ru Git - kernel.git/commit
nvme-rdma: use blk_rq_payload_bytes instead of blk_rq_bytes
authorChristoph Hellwig <hch@lst.de>
Thu, 22 Feb 2018 15:24:09 +0000 (07:24 -0800)
committerKeith Busch <keith.busch@intel.com>
Thu, 22 Feb 2018 08:45:32 +0000 (01:45 -0700)
commit4ce8625359ba174a8a333b011e1f3a8c57428613
tree1b91a15093945138669b37c473f14cf4dde0d533
parent6a773972d244a32f3e25a96bf4e5f46646acebd0
nvme-rdma: use blk_rq_payload_bytes instead of blk_rq_bytes

blk_rq_bytes does the wrong thing for special payloads like discards and
might cause the driver to not set up a SGL.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Sagi Grimberg <sagi@grimberg.me>
Reviewed-by: Johannes Thumshirn <jthumshirn@suse.de>
Signed-off-by: Keith Busch <keith.busch@intel.com>
drivers/nvme/host/rdma.c