]> git.baikalelectronics.ru Git - kernel.git/commit
nvmet-loop: use blk_rq_payload_bytes for sgl selection
authorChristoph Hellwig <hch@lst.de>
Thu, 22 Feb 2018 15:24:10 +0000 (07:24 -0800)
committerKeith Busch <keith.busch@intel.com>
Thu, 22 Feb 2018 08:45:34 +0000 (01:45 -0700)
commit99b8f0ded94e7d134c8404277d193785b589c0be
tree4b4b613090424bade84d393a61caff75cdd9d938
parent47ee7e72cf549cd808844b3123c22b343d121f22
nvmet-loop: use blk_rq_payload_bytes for sgl selection

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/target/loop.c