]> git.baikalelectronics.ru Git - kernel.git/commit
scsi: use blk_rq_payload_bytes
authorChristoph Hellwig <hch@lst.de>
Fri, 13 Jan 2017 11:29:11 +0000 (12:29 +0100)
committerJens Axboe <axboe@fb.com>
Fri, 13 Jan 2017 22:17:04 +0000 (15:17 -0700)
commite6be2ce3253e4910f8155f7b5ea34b282c9a403c
tree724ba8803cc9ac269baff0fe5ff30d1d2fb39932
parente267c485630eb13700d5b5689b2f7ce9d3c0ae2c
scsi: use blk_rq_payload_bytes

Without that we'll pass a wrong payload size in cmd->sdb, which
can lead to hangs with drivers that need the total transfer size.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Reported-by: Chris Valean <v-chvale@microsoft.com>
Reported-by: Dexuan Cui <decui@microsoft.com>
Fixes: a6df521c ("block: improve handling of the magic discard payload")
Reviewed-by: Hannes Reinecke <hare@suse.com>
Reviewed-by: Sagi Grimberg <sagi@grimberg.me>
Signed-off-by: Jens Axboe <axboe@fb.com>
drivers/scsi/scsi_lib.c