Set cmd_type on rq->next_rq to BLOCK_PC so that scsi_init_sgtable knows to look at req->data_len rather than nr_sectors. Signed-off-by: Pete Wyckoff <pw@xxxxxxx> --- block/bsg.c | 1 + 1 files changed, 1 insertions(+), 0 deletions(-) diff --git a/block/bsg.c b/block/bsg.c index ba4353a..eb0aaf4 100644 --- a/block/bsg.c +++ b/block/bsg.c @@ -278,6 +278,7 @@ bsg_map_hdr(struct bsg_device *bd, struct sg_io_v4 *hdr) ret = -ENOMEM; goto out; } + next_rq->cmd_type = REQ_TYPE_BLOCK_PC; rq->next_rq = next_rq; dxferp = (void*)(unsigned long)hdr->din_xferp; -- 1.5.2.4 - 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