Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

block: rename REQ_TYPE_SPECIAL to REQ_TYPE_DRV_PRIV

Signed-off-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Jens Axboe <axboe@fb.com>

authored by

Christoph Hellwig and committed by
Jens Axboe
4f8c9510 dac56212

+26 -26
+1 -1
drivers/block/nbd.c
··· 592 592 fsync_bdev(bdev); 593 593 mutex_lock(&nbd->tx_lock); 594 594 blk_rq_init(NULL, &sreq); 595 - sreq.cmd_type = REQ_TYPE_SPECIAL; 595 + sreq.cmd_type = REQ_TYPE_DRV_PRIV; 596 596 nbd_cmd(&sreq) = NBD_CMD_DISC; 597 597 598 598 /* Check again after getting mutex back. */
+2 -2
drivers/block/paride/pd.c
··· 442 442 443 443 static enum action do_pd_io_start(void) 444 444 { 445 - if (pd_req->cmd_type == REQ_TYPE_SPECIAL) { 445 + if (pd_req->cmd_type == REQ_TYPE_DRV_PRIV) { 446 446 phase = pd_special; 447 447 return pd_special(); 448 448 } ··· 725 725 if (IS_ERR(rq)) 726 726 return PTR_ERR(rq); 727 727 728 - rq->cmd_type = REQ_TYPE_SPECIAL; 728 + rq->cmd_type = REQ_TYPE_DRV_PRIV; 729 729 rq->special = func; 730 730 731 731 err = blk_execute_rq(disk->gd->queue, disk->gd, rq, 0);
+2 -2
drivers/block/sx8.c
··· 620 620 spin_unlock_irq(&host->lock); 621 621 622 622 DPRINTK("blk_execute_rq_nowait, tag == %u\n", idx); 623 - crq->rq->cmd_type = REQ_TYPE_SPECIAL; 623 + crq->rq->cmd_type = REQ_TYPE_DRV_PRIV; 624 624 crq->rq->special = crq; 625 625 blk_execute_rq_nowait(host->oob_q, NULL, crq->rq, true, NULL); 626 626 ··· 661 661 crq->msg_bucket = (u32) rc; 662 662 663 663 DPRINTK("blk_execute_rq_nowait, tag == %u\n", idx); 664 - crq->rq->cmd_type = REQ_TYPE_SPECIAL; 664 + crq->rq->cmd_type = REQ_TYPE_DRV_PRIV; 665 665 crq->rq->special = crq; 666 666 blk_execute_rq_nowait(host->oob_q, NULL, crq->rq, true, NULL); 667 667
+3 -3
drivers/block/virtio_blk.c
··· 124 124 req->resid_len = virtio32_to_cpu(vblk->vdev, vbr->in_hdr.residual); 125 125 req->sense_len = virtio32_to_cpu(vblk->vdev, vbr->in_hdr.sense_len); 126 126 req->errors = virtio32_to_cpu(vblk->vdev, vbr->in_hdr.errors); 127 - } else if (req->cmd_type == REQ_TYPE_SPECIAL) { 127 + } else if (req->cmd_type == REQ_TYPE_DRV_PRIV) { 128 128 req->errors = (error != 0); 129 129 } 130 130 ··· 188 188 vbr->out_hdr.sector = 0; 189 189 vbr->out_hdr.ioprio = cpu_to_virtio32(vblk->vdev, req_get_ioprio(vbr->req)); 190 190 break; 191 - case REQ_TYPE_SPECIAL: 191 + case REQ_TYPE_DRV_PRIV: 192 192 vbr->out_hdr.type = cpu_to_virtio32(vblk->vdev, VIRTIO_BLK_T_GET_ID); 193 193 vbr->out_hdr.sector = 0; 194 194 vbr->out_hdr.ioprio = cpu_to_virtio32(vblk->vdev, req_get_ioprio(vbr->req)); ··· 251 251 return PTR_ERR(req); 252 252 } 253 253 254 - req->cmd_type = REQ_TYPE_SPECIAL; 254 + req->cmd_type = REQ_TYPE_DRV_PRIV; 255 255 err = blk_execute_rq(vblk->disk->queue, vblk->disk, req, false); 256 256 blk_put_request(req); 257 257
+2 -2
drivers/ide/ide-atapi.c
··· 93 93 int error; 94 94 95 95 rq = blk_get_request(drive->queue, READ, __GFP_WAIT); 96 - rq->cmd_type = REQ_TYPE_SPECIAL; 96 + rq->cmd_type = REQ_TYPE_DRV_PRIV; 97 97 rq->special = (char *)pc; 98 98 99 99 if (buf && bufflen) { ··· 477 477 if (uptodate == 0) 478 478 drive->failed_pc = NULL; 479 479 480 - if (rq->cmd_type == REQ_TYPE_SPECIAL) { 480 + if (rq->cmd_type == REQ_TYPE_DRV_PRIV) { 481 481 rq->errors = 0; 482 482 error = 0; 483 483 } else {
+1 -1
drivers/ide/ide-cd.c
··· 799 799 800 800 cdrom_do_block_pc(drive, rq); 801 801 break; 802 - case REQ_TYPE_SPECIAL: 802 + case REQ_TYPE_DRV_PRIV: 803 803 /* right now this can only be a reset... */ 804 804 uptodate = 1; 805 805 goto out_end;
+1 -1
drivers/ide/ide-cd_ioctl.c
··· 304 304 int ret; 305 305 306 306 rq = blk_get_request(drive->queue, READ, __GFP_WAIT); 307 - rq->cmd_type = REQ_TYPE_SPECIAL; 307 + rq->cmd_type = REQ_TYPE_DRV_PRIV; 308 308 rq->cmd_flags = REQ_QUIET; 309 309 ret = blk_execute_rq(drive->queue, cd->disk, rq, 0); 310 310 blk_put_request(rq);
+1 -1
drivers/ide/ide-devsets.c
··· 166 166 return setting->set(drive, arg); 167 167 168 168 rq = blk_get_request(q, READ, __GFP_WAIT); 169 - rq->cmd_type = REQ_TYPE_SPECIAL; 169 + rq->cmd_type = REQ_TYPE_DRV_PRIV; 170 170 rq->cmd_len = 5; 171 171 rq->cmd[0] = REQ_DEVSET_EXEC; 172 172 *(int *)&rq->cmd[1] = arg;
+1 -1
drivers/ide/ide-eh.c
··· 147 147 { 148 148 struct request *rq = drive->hwif->rq; 149 149 150 - if (rq && rq->cmd_type == REQ_TYPE_SPECIAL && 150 + if (rq && rq->cmd_type == REQ_TYPE_DRV_PRIV && 151 151 rq->cmd[0] == REQ_DRIVE_RESET) { 152 152 if (err <= 0 && rq->errors == 0) 153 153 rq->errors = -EIO;
+3 -3
drivers/ide/ide-floppy.c
··· 97 97 "Aborting request!\n"); 98 98 } 99 99 100 - if (rq->cmd_type == REQ_TYPE_SPECIAL) 100 + if (rq->cmd_type == REQ_TYPE_DRV_PRIV) 101 101 rq->errors = uptodate ? 0 : IDE_DRV_ERROR_GENERAL; 102 102 103 103 return uptodate; ··· 246 246 } else 247 247 printk(KERN_ERR PFX "%s: I/O error\n", drive->name); 248 248 249 - if (rq->cmd_type == REQ_TYPE_SPECIAL) { 249 + if (rq->cmd_type == REQ_TYPE_DRV_PRIV) { 250 250 rq->errors = 0; 251 251 ide_complete_rq(drive, 0, blk_rq_bytes(rq)); 252 252 return ide_stopped; ··· 265 265 pc = &floppy->queued_pc; 266 266 idefloppy_create_rw_cmd(drive, pc, rq, (unsigned long)block); 267 267 break; 268 - case REQ_TYPE_SPECIAL: 268 + case REQ_TYPE_DRV_PRIV: 269 269 case REQ_TYPE_SENSE: 270 270 pc = (struct ide_atapi_pc *)rq->special; 271 271 break;
+2 -2
drivers/ide/ide-io.c
··· 135 135 136 136 void ide_kill_rq(ide_drive_t *drive, struct request *rq) 137 137 { 138 - u8 drv_req = (rq->cmd_type == REQ_TYPE_SPECIAL) && rq->rq_disk; 138 + u8 drv_req = (rq->cmd_type == REQ_TYPE_DRV_PRIV) && rq->rq_disk; 139 139 u8 media = drive->media; 140 140 141 141 drive->failed_pc = NULL; ··· 353 353 pm->pm_step == IDE_PM_COMPLETED) 354 354 ide_complete_pm_rq(drive, rq); 355 355 return startstop; 356 - } else if (!rq->rq_disk && rq->cmd_type == REQ_TYPE_SPECIAL) 356 + } else if (!rq->rq_disk && rq->cmd_type == REQ_TYPE_DRV_PRIV) 357 357 /* 358 358 * TODO: Once all ULDs have been modified to 359 359 * check for specific op codes rather than
+1 -1
drivers/ide/ide-ioctls.c
··· 222 222 int ret = 0; 223 223 224 224 rq = blk_get_request(drive->queue, READ, __GFP_WAIT); 225 - rq->cmd_type = REQ_TYPE_SPECIAL; 225 + rq->cmd_type = REQ_TYPE_DRV_PRIV; 226 226 rq->cmd_len = 1; 227 227 rq->cmd[0] = REQ_DRIVE_RESET; 228 228 if (blk_execute_rq(drive->queue, NULL, rq, 1))
+2 -2
drivers/ide/ide-park.c
··· 34 34 rq = blk_get_request(q, READ, __GFP_WAIT); 35 35 rq->cmd[0] = REQ_PARK_HEADS; 36 36 rq->cmd_len = 1; 37 - rq->cmd_type = REQ_TYPE_SPECIAL; 37 + rq->cmd_type = REQ_TYPE_DRV_PRIV; 38 38 rq->special = &timeout; 39 39 rc = blk_execute_rq(q, NULL, rq, 1); 40 40 blk_put_request(rq); ··· 51 51 52 52 rq->cmd[0] = REQ_UNPARK_HEADS; 53 53 rq->cmd_len = 1; 54 - rq->cmd_type = REQ_TYPE_SPECIAL; 54 + rq->cmd_type = REQ_TYPE_DRV_PRIV; 55 55 elv_add_request(q, rq, ELEVATOR_INSERT_FRONT); 56 56 57 57 out:
+2 -2
drivers/ide/ide-tape.c
··· 576 576 rq->cmd[0], (unsigned long long)blk_rq_pos(rq), 577 577 blk_rq_sectors(rq)); 578 578 579 - BUG_ON(!(rq->cmd_type == REQ_TYPE_SPECIAL || 579 + BUG_ON(!(rq->cmd_type == REQ_TYPE_DRV_PRIV || 580 580 rq->cmd_type == REQ_TYPE_SENSE)); 581 581 582 582 /* Retry a failed packet command */ ··· 853 853 BUG_ON(size < 0 || size % tape->blk_size); 854 854 855 855 rq = blk_get_request(drive->queue, READ, __GFP_WAIT); 856 - rq->cmd_type = REQ_TYPE_SPECIAL; 856 + rq->cmd_type = REQ_TYPE_DRV_PRIV; 857 857 rq->cmd[13] = cmd; 858 858 rq->rq_disk = tape->disk; 859 859 rq->__sector = tape->first_frame;
+2 -2
include/linux/blkdev.h
··· 79 79 REQ_TYPE_PM_SUSPEND, /* suspend request */ 80 80 REQ_TYPE_PM_RESUME, /* resume request */ 81 81 REQ_TYPE_PM_SHUTDOWN, /* shutdown request */ 82 - REQ_TYPE_SPECIAL, /* driver defined type */ 82 + REQ_TYPE_DRV_PRIV, /* driver defined type */ 83 83 /* 84 84 * for ATA/ATAPI devices. this really doesn't belong here, ide should 85 - * use REQ_TYPE_SPECIAL and use rq->cmd[0] with the range of driver 85 + * use REQ_TYPE_DRV_PRIV and use rq->cmd[0] with the range of driver 86 86 * private REQ_LB opcodes to differentiate what type of request this is 87 87 */ 88 88 REQ_TYPE_ATA_TASKFILE,