Skip to content
Commit fd102b12 authored by Christoph Hellwig's avatar Christoph Hellwig Committed by Jens Axboe
Browse files

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: default avatarChristoph Hellwig <hch@lst.de>
Reported-by: default avatarChris Valean <v-chvale@microsoft.com>
Reported-by: default avatarDexuan Cui <decui@microsoft.com>
Fixes: f9d03f96

 ("block: improve handling of the magic discard payload")
Reviewed-by: default avatarHannes Reinecke <hare@suse.com>
Reviewed-by: default avatarSagi Grimberg <sagi@grimberg.me>
Signed-off-by: default avatarJens Axboe <axboe@fb.com>
parent 2e3258ec
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment