Source
433
433
* if we would find a solution to transfer any size.
434
434
* To support special commands like READ LONG.
435
435
*/
436
436
if (nsect) {
437
437
error = blk_rq_map_kern(drive->queue, rq, buf,
438
438
nsect * SECTOR_SIZE, GFP_NOIO);
439
439
if (error)
440
440
goto put_req;
441
441
}
442
442
443
-
rq->special = cmd;
443
+
ide_req(rq)->special = cmd;
444
444
cmd->rq = rq;
445
445
446
446
blk_execute_rq(drive->queue, NULL, rq, 0);
447
447
error = scsi_req(rq)->result ? -EIO : 0;
448
448
put_req:
449
449
blk_put_request(rq);
450
450
return error;
451
451
}
452
452
EXPORT_SYMBOL(ide_raw_taskfile);
453
453