Commit 8159b141 authored by James Bottomley's avatar James Bottomley

Merge by hand: recover axboe scsi_init_io() changes

parent 41c8a0e4
...@@ -789,6 +789,8 @@ static int scsi_init_io(Scsi_Cmnd *SCpnt) ...@@ -789,6 +789,8 @@ static int scsi_init_io(Scsi_Cmnd *SCpnt)
SCpnt->request_buffer = (char *) sgpnt; SCpnt->request_buffer = (char *) sgpnt;
SCpnt->request_bufflen = req->nr_sectors << 9; SCpnt->request_bufflen = req->nr_sectors << 9;
if (blk_pc_request(req))
SCpnt->request_bufflen = req->data_len;
req->buffer = NULL; req->buffer = NULL;
/* /*
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment