On Fri, Jul 11, 2014 at 02:26:24PM +0200, Hannes Reinecke wrote: >> blk_add_request_payload(rq, page, len); >> - ret = scsi_setup_blk_pc_cmnd(sdp, rq); >> + >> + cmd->transfersize = len; >> + cmd->allowed = rq->retries; >> + >> + ret = scsi_init_io(cmd, GFP_ATOMIC); >> rq->__data_len = nr_bytes; >> >> out: > Ah. Here it's done properly. blk_add_request_payload also sets up rq->__data_len.. -- To unsubscribe from this list: send the line "unsubscribe linux-scsi" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html