|
@@ -428,13 +428,11 @@ int ide_raw_taskfile(ide_drive_t *drive, struct ide_cmd *cmd, u8 *buf,
|
|
|
{
|
|
|
struct request *rq;
|
|
|
int error;
|
|
|
+ int rw = !(cmd->tf_flags & IDE_TFLAG_WRITE) ? READ : WRITE;
|
|
|
|
|
|
- rq = blk_get_request(drive->queue, READ, __GFP_WAIT);
|
|
|
+ rq = blk_get_request(drive->queue, rw, __GFP_WAIT);
|
|
|
rq->cmd_type = REQ_TYPE_ATA_TASKFILE;
|
|
|
|
|
|
- if (cmd->tf_flags & IDE_TFLAG_WRITE)
|
|
|
- rq->cmd_flags |= REQ_RW;
|
|
|
-
|
|
|
/*
|
|
|
* (ks) We transfer currently only whole sectors.
|
|
|
* This is suffient for now. But, it would be great,
|