···191191192192 BUG_ON(sense_len > sizeof(*sense));193193194194- if (rq->cmd_type == REQ_TYPE_SENSE || drive->sense_rq_armed)194194+ if (rq->cmd_type == REQ_TYPE_ATA_SENSE || drive->sense_rq_armed)195195 return;196196197197 memset(sense, 0, sizeof(*sense));···210210 sense_rq->rq_disk = rq->rq_disk;211211 sense_rq->cmd[0] = GPCMD_REQUEST_SENSE;212212 sense_rq->cmd[4] = cmd_len;213213- sense_rq->cmd_type = REQ_TYPE_SENSE;213213+ sense_rq->cmd_type = REQ_TYPE_ATA_SENSE;214214 sense_rq->cmd_flags |= REQ_PREEMPT;215215216216 if (drive->media == ide_tape)···310310 switch (rq->cmd_type) {311311 case REQ_TYPE_FS:312312 return 32768;313313- case REQ_TYPE_SENSE:313313+ case REQ_TYPE_ATA_SENSE:314314 case REQ_TYPE_BLOCK_PC:315315 case REQ_TYPE_ATA_PC:316316 return blk_rq_bytes(rq);
+4-4
drivers/ide/ide-cd.c
···210210static void ide_cd_complete_failed_rq(ide_drive_t *drive, struct request *rq)211211{212212 /*213213- * For REQ_TYPE_SENSE, "rq->special" points to the original213213+ * For REQ_TYPE_ATA_SENSE, "rq->special" points to the original214214 * failed request. Also, the sense data should be read215215 * directly from rq which might be different from the original216216 * sense buffer if it got copied during mapping.···285285 "stat 0x%x",286286 rq->cmd[0], rq->cmd_type, err, stat);287287288288- if (rq->cmd_type == REQ_TYPE_SENSE) {288288+ if (rq->cmd_type == REQ_TYPE_ATA_SENSE) {289289 /*290290 * We got an error trying to get sense info from the drive291291 * (probably while trying to recover from a former error).···526526 ide_expiry_t *expiry = NULL;527527 int dma_error = 0, dma, thislen, uptodate = 0;528528 int write = (rq_data_dir(rq) == WRITE) ? 1 : 0, rc = 0;529529- int sense = (rq->cmd_type == REQ_TYPE_SENSE);529529+ int sense = (rq->cmd_type == REQ_TYPE_ATA_SENSE);530530 unsigned int timeout;531531 u16 len;532532 u8 ireason, stat;···791791 if (cdrom_start_rw(drive, rq) == ide_stopped)792792 goto out_end;793793 break;794794- case REQ_TYPE_SENSE:794794+ case REQ_TYPE_ATA_SENSE:795795 case REQ_TYPE_BLOCK_PC:796796 case REQ_TYPE_ATA_PC:797797 if (!rq->timeout)
+1-1
drivers/ide/ide-floppy.c
···266266 idefloppy_create_rw_cmd(drive, pc, rq, (unsigned long)block);267267 break;268268 case REQ_TYPE_DRV_PRIV:269269- case REQ_TYPE_SENSE:269269+ case REQ_TYPE_ATA_SENSE:270270 pc = (struct ide_atapi_pc *)rq->special;271271 break;272272 case REQ_TYPE_BLOCK_PC:
···4343enum ata_cmd_type_bits {4444 REQ_TYPE_ATA_TASKFILE = REQ_TYPE_DRV_PRIV + 1,4545 REQ_TYPE_ATA_PC,4646+ REQ_TYPE_ATA_SENSE, /* sense request */4647};47484849/* Error codes returned in rq->errors to the higher part of the driver. */