Make scsi-mq support blk-pc-command. Signed-off-by: Jianpeng Ma <majianpeng@xxxxxxxxx> --- drivers/scsi/scsi_lib.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/drivers/scsi/scsi_lib.c b/drivers/scsi/scsi_lib.c index bed596e..679e840 100644 --- a/drivers/scsi/scsi_lib.c +++ b/drivers/scsi/scsi_lib.c @@ -1059,9 +1059,11 @@ int scsi_init_io(struct scsi_cmnd *cmd, gfp_t gfp_mask) /* * Use pre-allocation of cmd->sdb scatterlists with scsi-mq.. */ -//FIXME: scsi-mq dif descriptor init within scsi_init_io if (rq->mq_ctx) { BUG_ON(rq->nr_phys_segments > SCSI_MAX_SG_SEGMENTS); + cmd->sdb.table.sgl = cmd->mq_sgl; + cmd->sdb.table.nents = rq->nr_phys_segments; + sg_init_table(cmd->sdb.table.sgl, rq->nr_phys_segments); scsi_init_sgtable(rq, &cmd->sdb); return BLKPREP_OK; } -- 1.7.10.4 ÿôèº{.nÇ+?·?®??+%?Ëÿ±éݶ¥?wÿº{.nÇ+?·¥?{±þÇ,?ø§¶?¡Ü¨}©?²Æ zÚ&j:+v?¨þø¯ù®w¥þ?à2?Þ?¨èÚ&¢)ß¡«a¶Úÿÿûàz¿äz¹Þ?ú+?ù???Ý¢jÿ?wèþf