[SCSI] tgt: set the data length properly

scsi_tgt uses REQ_TYPE_BLOCK_PC so scsi_init_io doesn't set the length
for us. scsi_tgt needs to do it by itself.

Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
Signed-off-by: James Bottomley <James.Bottomley@HansenPartnership.com>

authored by FUJITA Tomonori and committed by James Bottomley cccddc2d 36802e99

+5
+5
drivers/scsi/scsi_tgt_lib.c
··· 381 381 scsi_release_buffers(cmd); 382 382 goto unmap_rq; 383 383 } 384 + /* 385 + * we use REQ_TYPE_BLOCK_PC so scsi_init_io doesn't set the 386 + * length for us. 387 + */ 388 + cmd->sdb.length = rq->data_len; 384 389 385 390 return 0; 386 391