From: Tony Battersby Date: Fri, 22 Aug 2014 19:53:39 +0000 (-0400) Subject: scsi-mq: fix requests that use a separate CDB buffer X-Git-Tag: omap-fixes-against-v3.17-rc3~30^2~4 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6f4a16266fb3e58cd3e200eab51d2220ef92d604;p=pandora-kernel.git scsi-mq: fix requests that use a separate CDB buffer This patch fixes code such as the following with scsi-mq enabled: rq = blk_get_request(...); blk_rq_set_block_pc(rq); rq->cmd = my_cmd_buffer; /* separate CDB buffer */ blk_execute_rq_nowait(...); Code like this appears in e.g. sg_start_req() in drivers/scsi/sg.c (for large CDBs only). Without this patch, scsi_mq_prep_fn() will set rq->cmd back to rq->__cmd, causing the wrong CDB to be sent to the device. Signed-off-by: Tony Battersby Signed-off-by: Jens Axboe --- Reading git-diff-tree failed