Tony Battersby 6f4a16266f 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 <tonyb@cybernetics.com>
Signed-off-by: Jens Axboe <axboe@fb.com>
2014-08-22 15:04:31 -05:00
..
2014-07-17 22:07:37 +02:00
2014-07-25 17:16:54 -04:00
2014-07-17 22:07:37 +02:00
2014-07-17 22:07:37 +02:00
2014-07-25 17:16:59 -04:00
2014-05-19 19:12:23 +02:00
2014-07-25 17:16:55 -04:00
2014-08-08 15:57:29 -07:00
2014-06-06 07:57:37 -06:00
2014-07-17 22:07:37 +02:00
2014-08-08 15:57:29 -07:00
2014-07-25 17:16:55 -04:00
2014-07-17 22:07:37 +02:00
2014-07-17 22:07:37 +02:00
2014-08-08 15:57:29 -07:00
2014-07-17 22:07:37 +02:00
2014-08-08 15:57:29 -07:00
2014-07-25 07:43:43 -04:00
2014-07-17 22:07:37 +02:00
2013-04-09 14:13:23 -04:00
2014-07-17 22:07:37 +02:00
2014-06-09 18:54:06 -07:00
2014-07-17 22:07:40 +02:00
2014-07-17 22:07:38 +02:00
2014-07-17 22:07:37 +02:00
2014-07-17 22:07:37 +02:00
2013-04-09 14:13:17 -04:00
2014-08-08 15:57:29 -07:00
2014-07-17 22:07:37 +02:00
2013-04-09 14:13:16 -04:00
2013-04-09 14:13:16 -04:00
2013-04-09 14:13:16 -04:00
2014-08-08 15:57:29 -07:00
2014-07-17 22:07:37 +02:00
2013-04-09 14:13:16 -04:00
2014-07-17 22:07:37 +02:00
2013-04-09 14:13:27 -04:00
2014-07-25 17:16:55 -04:00
2014-07-25 07:43:43 -04:00
2014-07-17 22:07:44 +02:00
2014-08-08 15:57:29 -07:00
2013-04-09 14:13:15 -04:00
2014-07-17 22:07:37 +02:00
2014-07-17 22:07:35 +02:00
2014-07-17 22:07:37 +02:00
2014-05-28 18:14:16 +02:00
2014-07-17 22:07:37 +02:00
2014-06-06 07:57:37 -06:00
2014-07-25 17:16:55 -04:00
2013-04-09 14:13:17 -04:00
2014-07-17 22:07:37 +02:00
2014-07-25 17:16:55 -04:00
2014-04-10 15:30:35 -07:00
2014-07-17 22:07:37 +02:00
2014-07-17 22:07:37 +02:00
2013-11-23 22:33:50 -08:00
2014-07-17 22:07:33 +02:00
2014-07-25 07:43:45 -04:00
2014-07-17 22:07:39 +02:00
2014-07-17 22:07:39 +02:00
2014-07-17 22:07:41 +02:00
2012-09-14 17:59:29 +01:00
2014-07-25 17:23:25 -04:00
2014-07-17 22:07:37 +02:00
2014-05-28 12:05:37 +02:00
2014-05-28 12:05:37 +02:00
2014-07-17 22:07:37 +02:00
2014-07-17 22:07:37 +02:00
2014-07-17 22:07:37 +02:00
2013-04-09 14:13:15 -04:00