diff options
Diffstat (limited to 'drivers/block')
-rw-r--r-- | drivers/block/amiflop.c | 2 | ||||
-rw-r--r-- | drivers/block/aoe/aoe.h | 2 | ||||
-rw-r--r-- | drivers/block/aoe/aoeblk.c | 2 | ||||
-rw-r--r-- | drivers/block/ataflop.c | 2 | ||||
-rw-r--r-- | drivers/block/cciss.c | 10 | ||||
-rw-r--r-- | drivers/block/cpqarray.c | 6 | ||||
-rw-r--r-- | drivers/block/floppy.c | 4 | ||||
-rw-r--r-- | drivers/block/lguest_blk.c | 2 | ||||
-rw-r--r-- | drivers/block/loop.c | 4 | ||||
-rw-r--r-- | drivers/block/nbd.c | 4 | ||||
-rw-r--r-- | drivers/block/paride/pcd.c | 4 | ||||
-rw-r--r-- | drivers/block/paride/pd.c | 2 | ||||
-rw-r--r-- | drivers/block/paride/pf.c | 4 | ||||
-rw-r--r-- | drivers/block/pktcdvd.c | 12 | ||||
-rw-r--r-- | drivers/block/ps2esdi.c | 4 | ||||
-rw-r--r-- | drivers/block/ps3disk.c | 8 | ||||
-rw-r--r-- | drivers/block/rd.c | 2 | ||||
-rw-r--r-- | drivers/block/sunvdc.c | 2 | ||||
-rw-r--r-- | drivers/block/swim3.c | 4 | ||||
-rw-r--r-- | drivers/block/sx8.c | 20 | ||||
-rw-r--r-- | drivers/block/ub.c | 6 | ||||
-rw-r--r-- | drivers/block/umem.c | 6 | ||||
-rw-r--r-- | drivers/block/viodasd.c | 2 | ||||
-rw-r--r-- | drivers/block/xd.c | 2 | ||||
-rw-r--r-- | drivers/block/xd.h | 2 | ||||
-rw-r--r-- | drivers/block/xen-blkfront.c | 4 | ||||
-rw-r--r-- | drivers/block/xsysace.c | 4 | ||||
-rw-r--r-- | drivers/block/z2ram.c | 2 |
28 files changed, 64 insertions, 64 deletions
diff --git a/drivers/block/amiflop.c b/drivers/block/amiflop.c index 6ce8b897e262..c9751b2b57e6 100644 --- a/drivers/block/amiflop.c +++ b/drivers/block/amiflop.c | |||
@@ -1422,7 +1422,7 @@ static void redo_fd_request(void) | |||
1422 | goto repeat; | 1422 | goto repeat; |
1423 | } | 1423 | } |
1424 | 1424 | ||
1425 | static void do_fd_request(request_queue_t * q) | 1425 | static void do_fd_request(struct request_queue * q) |
1426 | { | 1426 | { |
1427 | redo_fd_request(); | 1427 | redo_fd_request(); |
1428 | } | 1428 | } |
diff --git a/drivers/block/aoe/aoe.h b/drivers/block/aoe/aoe.h index 1d8466817943..ba07f762c4cb 100644 --- a/drivers/block/aoe/aoe.h +++ b/drivers/block/aoe/aoe.h | |||
@@ -138,7 +138,7 @@ struct aoedev { | |||
138 | u16 maxbcnt; | 138 | u16 maxbcnt; |
139 | struct work_struct work;/* disk create work struct */ | 139 | struct work_struct work;/* disk create work struct */ |
140 | struct gendisk *gd; | 140 | struct gendisk *gd; |
141 | request_queue_t blkq; | 141 | struct request_queue blkq; |
142 | struct hd_geometry geo; | 142 | struct hd_geometry geo; |
143 | sector_t ssize; | 143 | sector_t ssize; |
144 | struct timer_list timer; | 144 | struct timer_list timer; |
diff --git a/drivers/block/aoe/aoeblk.c b/drivers/block/aoe/aoeblk.c index 4f598270fa31..007faaf008e7 100644 --- a/drivers/block/aoe/aoeblk.c +++ b/drivers/block/aoe/aoeblk.c | |||
@@ -125,7 +125,7 @@ aoeblk_release(struct inode *inode, struct file *filp) | |||
125 | } | 125 | } |
126 | 126 | ||
127 | static int | 127 | static int |
128 | aoeblk_make_request(request_queue_t *q, struct bio *bio) | 128 | aoeblk_make_request(struct request_queue *q, struct bio *bio) |
129 | { | 129 | { |
130 | struct aoedev *d; | 130 | struct aoedev *d; |
131 | struct buf *buf; | 131 | struct buf *buf; |
diff --git a/drivers/block/ataflop.c b/drivers/block/ataflop.c index 14d6b9492750..94268c75d04f 100644 --- a/drivers/block/ataflop.c +++ b/drivers/block/ataflop.c | |||
@@ -1466,7 +1466,7 @@ repeat: | |||
1466 | } | 1466 | } |
1467 | 1467 | ||
1468 | 1468 | ||
1469 | void do_fd_request(request_queue_t * q) | 1469 | void do_fd_request(struct request_queue * q) |
1470 | { | 1470 | { |
1471 | unsigned long flags; | 1471 | unsigned long flags; |
1472 | 1472 | ||
diff --git a/drivers/block/cciss.c b/drivers/block/cciss.c index a2d6612b80d2..1be82d544dc3 100644 --- a/drivers/block/cciss.c +++ b/drivers/block/cciss.c | |||
@@ -139,7 +139,7 @@ static struct board_type products[] = { | |||
139 | 139 | ||
140 | static ctlr_info_t *hba[MAX_CTLR]; | 140 | static ctlr_info_t *hba[MAX_CTLR]; |
141 | 141 | ||
142 | static void do_cciss_request(request_queue_t *q); | 142 | static void do_cciss_request(struct request_queue *q); |
143 | static irqreturn_t do_cciss_intr(int irq, void *dev_id); | 143 | static irqreturn_t do_cciss_intr(int irq, void *dev_id); |
144 | static int cciss_open(struct inode *inode, struct file *filep); | 144 | static int cciss_open(struct inode *inode, struct file *filep); |
145 | static int cciss_release(struct inode *inode, struct file *filep); | 145 | static int cciss_release(struct inode *inode, struct file *filep); |
@@ -1584,7 +1584,7 @@ static int deregister_disk(struct gendisk *disk, drive_info_struct *drv, | |||
1584 | */ | 1584 | */ |
1585 | if (h->gendisk[0] != disk) { | 1585 | if (h->gendisk[0] != disk) { |
1586 | if (disk) { | 1586 | if (disk) { |
1587 | request_queue_t *q = disk->queue; | 1587 | struct request_queue *q = disk->queue; |
1588 | if (disk->flags & GENHD_FL_UP) | 1588 | if (disk->flags & GENHD_FL_UP) |
1589 | del_gendisk(disk); | 1589 | del_gendisk(disk); |
1590 | if (q) { | 1590 | if (q) { |
@@ -2511,7 +2511,7 @@ after_error_processing: | |||
2511 | /* | 2511 | /* |
2512 | * Get a request and submit it to the controller. | 2512 | * Get a request and submit it to the controller. |
2513 | */ | 2513 | */ |
2514 | static void do_cciss_request(request_queue_t *q) | 2514 | static void do_cciss_request(struct request_queue *q) |
2515 | { | 2515 | { |
2516 | ctlr_info_t *h = q->queuedata; | 2516 | ctlr_info_t *h = q->queuedata; |
2517 | CommandList_struct *c; | 2517 | CommandList_struct *c; |
@@ -3380,7 +3380,7 @@ static int __devinit cciss_init_one(struct pci_dev *pdev, | |||
3380 | do { | 3380 | do { |
3381 | drive_info_struct *drv = &(hba[i]->drv[j]); | 3381 | drive_info_struct *drv = &(hba[i]->drv[j]); |
3382 | struct gendisk *disk = hba[i]->gendisk[j]; | 3382 | struct gendisk *disk = hba[i]->gendisk[j]; |
3383 | request_queue_t *q; | 3383 | struct request_queue *q; |
3384 | 3384 | ||
3385 | /* Check if the disk was allocated already */ | 3385 | /* Check if the disk was allocated already */ |
3386 | if (!disk){ | 3386 | if (!disk){ |
@@ -3523,7 +3523,7 @@ static void __devexit cciss_remove_one(struct pci_dev *pdev) | |||
3523 | for (j = 0; j < CISS_MAX_LUN; j++) { | 3523 | for (j = 0; j < CISS_MAX_LUN; j++) { |
3524 | struct gendisk *disk = hba[i]->gendisk[j]; | 3524 | struct gendisk *disk = hba[i]->gendisk[j]; |
3525 | if (disk) { | 3525 | if (disk) { |
3526 | request_queue_t *q = disk->queue; | 3526 | struct request_queue *q = disk->queue; |
3527 | 3527 | ||
3528 | if (disk->flags & GENHD_FL_UP) | 3528 | if (disk->flags & GENHD_FL_UP) |
3529 | del_gendisk(disk); | 3529 | del_gendisk(disk); |
diff --git a/drivers/block/cpqarray.c b/drivers/block/cpqarray.c index b94cd1c32131..be4e3477d83b 100644 --- a/drivers/block/cpqarray.c +++ b/drivers/block/cpqarray.c | |||
@@ -161,7 +161,7 @@ static int ida_ioctl(struct inode *inode, struct file *filep, unsigned int cmd, | |||
161 | static int ida_getgeo(struct block_device *bdev, struct hd_geometry *geo); | 161 | static int ida_getgeo(struct block_device *bdev, struct hd_geometry *geo); |
162 | static int ida_ctlr_ioctl(ctlr_info_t *h, int dsk, ida_ioctl_t *io); | 162 | static int ida_ctlr_ioctl(ctlr_info_t *h, int dsk, ida_ioctl_t *io); |
163 | 163 | ||
164 | static void do_ida_request(request_queue_t *q); | 164 | static void do_ida_request(struct request_queue *q); |
165 | static void start_io(ctlr_info_t *h); | 165 | static void start_io(ctlr_info_t *h); |
166 | 166 | ||
167 | static inline void addQ(cmdlist_t **Qptr, cmdlist_t *c); | 167 | static inline void addQ(cmdlist_t **Qptr, cmdlist_t *c); |
@@ -391,7 +391,7 @@ static void __devexit cpqarray_remove_one_eisa (int i) | |||
391 | /* pdev is NULL for eisa */ | 391 | /* pdev is NULL for eisa */ |
392 | static int __init cpqarray_register_ctlr( int i, struct pci_dev *pdev) | 392 | static int __init cpqarray_register_ctlr( int i, struct pci_dev *pdev) |
393 | { | 393 | { |
394 | request_queue_t *q; | 394 | struct request_queue *q; |
395 | int j; | 395 | int j; |
396 | 396 | ||
397 | /* | 397 | /* |
@@ -886,7 +886,7 @@ static inline cmdlist_t *removeQ(cmdlist_t **Qptr, cmdlist_t *c) | |||
886 | * are in here (either via the dummy do_ida_request functions or by being | 886 | * are in here (either via the dummy do_ida_request functions or by being |
887 | * called from the interrupt handler | 887 | * called from the interrupt handler |
888 | */ | 888 | */ |
889 | static void do_ida_request(request_queue_t *q) | 889 | static void do_ida_request(struct request_queue *q) |
890 | { | 890 | { |
891 | ctlr_info_t *h = q->queuedata; | 891 | ctlr_info_t *h = q->queuedata; |
892 | cmdlist_t *c; | 892 | cmdlist_t *c; |
diff --git a/drivers/block/floppy.c b/drivers/block/floppy.c index fe088045dd08..085b7794fb3e 100644 --- a/drivers/block/floppy.c +++ b/drivers/block/floppy.c | |||
@@ -251,7 +251,7 @@ static int irqdma_allocated; | |||
251 | 251 | ||
252 | static struct request *current_req; | 252 | static struct request *current_req; |
253 | static struct request_queue *floppy_queue; | 253 | static struct request_queue *floppy_queue; |
254 | static void do_fd_request(request_queue_t * q); | 254 | static void do_fd_request(struct request_queue * q); |
255 | 255 | ||
256 | #ifndef fd_get_dma_residue | 256 | #ifndef fd_get_dma_residue |
257 | #define fd_get_dma_residue() get_dma_residue(FLOPPY_DMA) | 257 | #define fd_get_dma_residue() get_dma_residue(FLOPPY_DMA) |
@@ -2981,7 +2981,7 @@ static void process_fd_request(void) | |||
2981 | schedule_bh(redo_fd_request); | 2981 | schedule_bh(redo_fd_request); |
2982 | } | 2982 | } |
2983 | 2983 | ||
2984 | static void do_fd_request(request_queue_t * q) | 2984 | static void do_fd_request(struct request_queue * q) |
2985 | { | 2985 | { |
2986 | if (max_buffer_sectors == 0) { | 2986 | if (max_buffer_sectors == 0) { |
2987 | printk("VFS: do_fd_request called on non-open device\n"); | 2987 | printk("VFS: do_fd_request called on non-open device\n"); |
diff --git a/drivers/block/lguest_blk.c b/drivers/block/lguest_blk.c index 1634c2dd25ec..5b79d0724171 100644 --- a/drivers/block/lguest_blk.c +++ b/drivers/block/lguest_blk.c | |||
@@ -137,7 +137,7 @@ static void do_read(struct blockdev *bd, struct request *req) | |||
137 | lguest_send_dma(bd->phys_addr, &ping); | 137 | lguest_send_dma(bd->phys_addr, &ping); |
138 | } | 138 | } |
139 | 139 | ||
140 | static void do_lgb_request(request_queue_t *q) | 140 | static void do_lgb_request(struct request_queue *q) |
141 | { | 141 | { |
142 | struct blockdev *bd; | 142 | struct blockdev *bd; |
143 | struct request *req; | 143 | struct request *req; |
diff --git a/drivers/block/loop.c b/drivers/block/loop.c index e425daa1eac3..9f015fce4135 100644 --- a/drivers/block/loop.c +++ b/drivers/block/loop.c | |||
@@ -529,7 +529,7 @@ static struct bio *loop_get_bio(struct loop_device *lo) | |||
529 | return bio; | 529 | return bio; |
530 | } | 530 | } |
531 | 531 | ||
532 | static int loop_make_request(request_queue_t *q, struct bio *old_bio) | 532 | static int loop_make_request(struct request_queue *q, struct bio *old_bio) |
533 | { | 533 | { |
534 | struct loop_device *lo = q->queuedata; | 534 | struct loop_device *lo = q->queuedata; |
535 | int rw = bio_rw(old_bio); | 535 | int rw = bio_rw(old_bio); |
@@ -558,7 +558,7 @@ out: | |||
558 | /* | 558 | /* |
559 | * kick off io on the underlying address space | 559 | * kick off io on the underlying address space |
560 | */ | 560 | */ |
561 | static void loop_unplug(request_queue_t *q) | 561 | static void loop_unplug(struct request_queue *q) |
562 | { | 562 | { |
563 | struct loop_device *lo = q->queuedata; | 563 | struct loop_device *lo = q->queuedata; |
564 | 564 | ||
diff --git a/drivers/block/nbd.c b/drivers/block/nbd.c index c12951024090..be92c658f06e 100644 --- a/drivers/block/nbd.c +++ b/drivers/block/nbd.c | |||
@@ -100,7 +100,7 @@ static const char *nbdcmd_to_ascii(int cmd) | |||
100 | static void nbd_end_request(struct request *req) | 100 | static void nbd_end_request(struct request *req) |
101 | { | 101 | { |
102 | int uptodate = (req->errors == 0) ? 1 : 0; | 102 | int uptodate = (req->errors == 0) ? 1 : 0; |
103 | request_queue_t *q = req->q; | 103 | struct request_queue *q = req->q; |
104 | unsigned long flags; | 104 | unsigned long flags; |
105 | 105 | ||
106 | dprintk(DBG_BLKDEV, "%s: request %p: %s\n", req->rq_disk->disk_name, | 106 | dprintk(DBG_BLKDEV, "%s: request %p: %s\n", req->rq_disk->disk_name, |
@@ -410,7 +410,7 @@ static void nbd_clear_que(struct nbd_device *lo) | |||
410 | * { printk( "Warning: Ignoring result!\n"); nbd_end_request( req ); } | 410 | * { printk( "Warning: Ignoring result!\n"); nbd_end_request( req ); } |
411 | */ | 411 | */ |
412 | 412 | ||
413 | static void do_nbd_request(request_queue_t * q) | 413 | static void do_nbd_request(struct request_queue * q) |
414 | { | 414 | { |
415 | struct request *req; | 415 | struct request *req; |
416 | 416 | ||
diff --git a/drivers/block/paride/pcd.c b/drivers/block/paride/pcd.c index 1eeb8f2cde71..b8a994a2b013 100644 --- a/drivers/block/paride/pcd.c +++ b/drivers/block/paride/pcd.c | |||
@@ -183,7 +183,7 @@ static int pcd_packet(struct cdrom_device_info *cdi, | |||
183 | static int pcd_detect(void); | 183 | static int pcd_detect(void); |
184 | static void pcd_probe_capabilities(void); | 184 | static void pcd_probe_capabilities(void); |
185 | static void do_pcd_read_drq(void); | 185 | static void do_pcd_read_drq(void); |
186 | static void do_pcd_request(request_queue_t * q); | 186 | static void do_pcd_request(struct request_queue * q); |
187 | static void do_pcd_read(void); | 187 | static void do_pcd_read(void); |
188 | 188 | ||
189 | struct pcd_unit { | 189 | struct pcd_unit { |
@@ -713,7 +713,7 @@ static int pcd_detect(void) | |||
713 | /* I/O request processing */ | 713 | /* I/O request processing */ |
714 | static struct request_queue *pcd_queue; | 714 | static struct request_queue *pcd_queue; |
715 | 715 | ||
716 | static void do_pcd_request(request_queue_t * q) | 716 | static void do_pcd_request(struct request_queue * q) |
717 | { | 717 | { |
718 | if (pcd_busy) | 718 | if (pcd_busy) |
719 | return; | 719 | return; |
diff --git a/drivers/block/paride/pd.c b/drivers/block/paride/pd.c index 31e01488eb51..df819f8a95a6 100644 --- a/drivers/block/paride/pd.c +++ b/drivers/block/paride/pd.c | |||
@@ -698,7 +698,7 @@ static enum action pd_identify(struct pd_unit *disk) | |||
698 | 698 | ||
699 | /* end of io request engine */ | 699 | /* end of io request engine */ |
700 | 700 | ||
701 | static void do_pd_request(request_queue_t * q) | 701 | static void do_pd_request(struct request_queue * q) |
702 | { | 702 | { |
703 | if (pd_req) | 703 | if (pd_req) |
704 | return; | 704 | return; |
diff --git a/drivers/block/paride/pf.c b/drivers/block/paride/pf.c index 5826508f6731..ceffa6034e20 100644 --- a/drivers/block/paride/pf.c +++ b/drivers/block/paride/pf.c | |||
@@ -202,7 +202,7 @@ module_param_array(drive3, int, NULL, 0); | |||
202 | #define ATAPI_WRITE_10 0x2a | 202 | #define ATAPI_WRITE_10 0x2a |
203 | 203 | ||
204 | static int pf_open(struct inode *inode, struct file *file); | 204 | static int pf_open(struct inode *inode, struct file *file); |
205 | static void do_pf_request(request_queue_t * q); | 205 | static void do_pf_request(struct request_queue * q); |
206 | static int pf_ioctl(struct inode *inode, struct file *file, | 206 | static int pf_ioctl(struct inode *inode, struct file *file, |
207 | unsigned int cmd, unsigned long arg); | 207 | unsigned int cmd, unsigned long arg); |
208 | static int pf_getgeo(struct block_device *bdev, struct hd_geometry *geo); | 208 | static int pf_getgeo(struct block_device *bdev, struct hd_geometry *geo); |
@@ -760,7 +760,7 @@ static void pf_end_request(int uptodate) | |||
760 | } | 760 | } |
761 | } | 761 | } |
762 | 762 | ||
763 | static void do_pf_request(request_queue_t * q) | 763 | static void do_pf_request(struct request_queue * q) |
764 | { | 764 | { |
765 | if (pf_busy) | 765 | if (pf_busy) |
766 | return; | 766 | return; |
diff --git a/drivers/block/pktcdvd.c b/drivers/block/pktcdvd.c index 31be33e4f119..fadbfd880bab 100644 --- a/drivers/block/pktcdvd.c +++ b/drivers/block/pktcdvd.c | |||
@@ -752,7 +752,7 @@ static inline struct bio *pkt_get_list_first(struct bio **list_head, struct bio | |||
752 | */ | 752 | */ |
753 | static int pkt_generic_packet(struct pktcdvd_device *pd, struct packet_command *cgc) | 753 | static int pkt_generic_packet(struct pktcdvd_device *pd, struct packet_command *cgc) |
754 | { | 754 | { |
755 | request_queue_t *q = bdev_get_queue(pd->bdev); | 755 | struct request_queue *q = bdev_get_queue(pd->bdev); |
756 | struct request *rq; | 756 | struct request *rq; |
757 | int ret = 0; | 757 | int ret = 0; |
758 | 758 | ||
@@ -979,7 +979,7 @@ static void pkt_iosched_process_queue(struct pktcdvd_device *pd) | |||
979 | * Special care is needed if the underlying block device has a small | 979 | * Special care is needed if the underlying block device has a small |
980 | * max_phys_segments value. | 980 | * max_phys_segments value. |
981 | */ | 981 | */ |
982 | static int pkt_set_segment_merging(struct pktcdvd_device *pd, request_queue_t *q) | 982 | static int pkt_set_segment_merging(struct pktcdvd_device *pd, struct request_queue *q) |
983 | { | 983 | { |
984 | if ((pd->settings.size << 9) / CD_FRAMESIZE <= q->max_phys_segments) { | 984 | if ((pd->settings.size << 9) / CD_FRAMESIZE <= q->max_phys_segments) { |
985 | /* | 985 | /* |
@@ -2314,7 +2314,7 @@ static int pkt_open_dev(struct pktcdvd_device *pd, int write) | |||
2314 | { | 2314 | { |
2315 | int ret; | 2315 | int ret; |
2316 | long lba; | 2316 | long lba; |
2317 | request_queue_t *q; | 2317 | struct request_queue *q; |
2318 | 2318 | ||
2319 | /* | 2319 | /* |
2320 | * We need to re-open the cdrom device without O_NONBLOCK to be able | 2320 | * We need to re-open the cdrom device without O_NONBLOCK to be able |
@@ -2477,7 +2477,7 @@ static int pkt_end_io_read_cloned(struct bio *bio, unsigned int bytes_done, int | |||
2477 | return 0; | 2477 | return 0; |
2478 | } | 2478 | } |
2479 | 2479 | ||
2480 | static int pkt_make_request(request_queue_t *q, struct bio *bio) | 2480 | static int pkt_make_request(struct request_queue *q, struct bio *bio) |
2481 | { | 2481 | { |
2482 | struct pktcdvd_device *pd; | 2482 | struct pktcdvd_device *pd; |
2483 | char b[BDEVNAME_SIZE]; | 2483 | char b[BDEVNAME_SIZE]; |
@@ -2626,7 +2626,7 @@ end_io: | |||
2626 | 2626 | ||
2627 | 2627 | ||
2628 | 2628 | ||
2629 | static int pkt_merge_bvec(request_queue_t *q, struct bio *bio, struct bio_vec *bvec) | 2629 | static int pkt_merge_bvec(struct request_queue *q, struct bio *bio, struct bio_vec *bvec) |
2630 | { | 2630 | { |
2631 | struct pktcdvd_device *pd = q->queuedata; | 2631 | struct pktcdvd_device *pd = q->queuedata; |
2632 | sector_t zone = ZONE(bio->bi_sector, pd); | 2632 | sector_t zone = ZONE(bio->bi_sector, pd); |
@@ -2647,7 +2647,7 @@ static int pkt_merge_bvec(request_queue_t *q, struct bio *bio, struct bio_vec *b | |||
2647 | 2647 | ||
2648 | static void pkt_init_queue(struct pktcdvd_device *pd) | 2648 | static void pkt_init_queue(struct pktcdvd_device *pd) |
2649 | { | 2649 | { |
2650 | request_queue_t *q = pd->disk->queue; | 2650 | struct request_queue *q = pd->disk->queue; |
2651 | 2651 | ||
2652 | blk_queue_make_request(q, pkt_make_request); | 2652 | blk_queue_make_request(q, pkt_make_request); |
2653 | blk_queue_hardsect_size(q, CD_FRAMESIZE); | 2653 | blk_queue_hardsect_size(q, CD_FRAMESIZE); |
diff --git a/drivers/block/ps2esdi.c b/drivers/block/ps2esdi.c index 688a4fb0dc99..3c796e236253 100644 --- a/drivers/block/ps2esdi.c +++ b/drivers/block/ps2esdi.c | |||
@@ -64,7 +64,7 @@ static void reset_ctrl(void); | |||
64 | 64 | ||
65 | static int ps2esdi_geninit(void); | 65 | static int ps2esdi_geninit(void); |
66 | 66 | ||
67 | static void do_ps2esdi_request(request_queue_t * q); | 67 | static void do_ps2esdi_request(struct request_queue * q); |
68 | 68 | ||
69 | static void ps2esdi_readwrite(int cmd, struct request *req); | 69 | static void ps2esdi_readwrite(int cmd, struct request *req); |
70 | 70 | ||
@@ -473,7 +473,7 @@ static void __init ps2esdi_get_device_cfg(void) | |||
473 | } | 473 | } |
474 | 474 | ||
475 | /* strategy routine that handles most of the IO requests */ | 475 | /* strategy routine that handles most of the IO requests */ |
476 | static void do_ps2esdi_request(request_queue_t * q) | 476 | static void do_ps2esdi_request(struct request_queue * q) |
477 | { | 477 | { |
478 | struct request *req; | 478 | struct request *req; |
479 | /* since, this routine is called with interrupts cleared - they | 479 | /* since, this routine is called with interrupts cleared - they |
diff --git a/drivers/block/ps3disk.c b/drivers/block/ps3disk.c index 170fb33dba97..aa8b890c80d7 100644 --- a/drivers/block/ps3disk.c +++ b/drivers/block/ps3disk.c | |||
@@ -190,7 +190,7 @@ static int ps3disk_submit_flush_request(struct ps3_storage_device *dev, | |||
190 | } | 190 | } |
191 | 191 | ||
192 | static void ps3disk_do_request(struct ps3_storage_device *dev, | 192 | static void ps3disk_do_request(struct ps3_storage_device *dev, |
193 | request_queue_t *q) | 193 | struct request_queue *q) |
194 | { | 194 | { |
195 | struct request *req; | 195 | struct request *req; |
196 | 196 | ||
@@ -211,7 +211,7 @@ static void ps3disk_do_request(struct ps3_storage_device *dev, | |||
211 | } | 211 | } |
212 | } | 212 | } |
213 | 213 | ||
214 | static void ps3disk_request(request_queue_t *q) | 214 | static void ps3disk_request(struct request_queue *q) |
215 | { | 215 | { |
216 | struct ps3_storage_device *dev = q->queuedata; | 216 | struct ps3_storage_device *dev = q->queuedata; |
217 | struct ps3disk_private *priv = dev->sbd.core.driver_data; | 217 | struct ps3disk_private *priv = dev->sbd.core.driver_data; |
@@ -404,7 +404,7 @@ static int ps3disk_identify(struct ps3_storage_device *dev) | |||
404 | return 0; | 404 | return 0; |
405 | } | 405 | } |
406 | 406 | ||
407 | static void ps3disk_prepare_flush(request_queue_t *q, struct request *req) | 407 | static void ps3disk_prepare_flush(struct request_queue *q, struct request *req) |
408 | { | 408 | { |
409 | struct ps3_storage_device *dev = q->queuedata; | 409 | struct ps3_storage_device *dev = q->queuedata; |
410 | 410 | ||
@@ -414,7 +414,7 @@ static void ps3disk_prepare_flush(request_queue_t *q, struct request *req) | |||
414 | req->cmd_type = REQ_TYPE_FLUSH; | 414 | req->cmd_type = REQ_TYPE_FLUSH; |
415 | } | 415 | } |
416 | 416 | ||
417 | static int ps3disk_issue_flush(request_queue_t *q, struct gendisk *gendisk, | 417 | static int ps3disk_issue_flush(struct request_queue *q, struct gendisk *gendisk, |
418 | sector_t *sector) | 418 | sector_t *sector) |
419 | { | 419 | { |
420 | struct ps3_storage_device *dev = q->queuedata; | 420 | struct ps3_storage_device *dev = q->queuedata; |
diff --git a/drivers/block/rd.c b/drivers/block/rd.c index a1512da32410..65150b548f3a 100644 --- a/drivers/block/rd.c +++ b/drivers/block/rd.c | |||
@@ -264,7 +264,7 @@ static int rd_blkdev_pagecache_IO(int rw, struct bio_vec *vec, sector_t sector, | |||
264 | * 19-JAN-1998 Richard Gooch <rgooch@atnf.csiro.au> Added devfs support | 264 | * 19-JAN-1998 Richard Gooch <rgooch@atnf.csiro.au> Added devfs support |
265 | * | 265 | * |
266 | */ | 266 | */ |
267 | static int rd_make_request(request_queue_t *q, struct bio *bio) | 267 | static int rd_make_request(struct request_queue *q, struct bio *bio) |
268 | { | 268 | { |
269 | struct block_device *bdev = bio->bi_bdev; | 269 | struct block_device *bdev = bio->bi_bdev; |
270 | struct address_space * mapping = bdev->bd_inode->i_mapping; | 270 | struct address_space * mapping = bdev->bd_inode->i_mapping; |
diff --git a/drivers/block/sunvdc.c b/drivers/block/sunvdc.c index d50b82381155..4dff49256ac2 100644 --- a/drivers/block/sunvdc.c +++ b/drivers/block/sunvdc.c | |||
@@ -444,7 +444,7 @@ out: | |||
444 | return err; | 444 | return err; |
445 | } | 445 | } |
446 | 446 | ||
447 | static void do_vdc_request(request_queue_t *q) | 447 | static void do_vdc_request(struct request_queue *q) |
448 | { | 448 | { |
449 | while (1) { | 449 | while (1) { |
450 | struct request *req = elv_next_request(q); | 450 | struct request *req = elv_next_request(q); |
diff --git a/drivers/block/swim3.c b/drivers/block/swim3.c index 1a65979f1f0f..b4e462f154ea 100644 --- a/drivers/block/swim3.c +++ b/drivers/block/swim3.c | |||
@@ -225,7 +225,7 @@ static unsigned short write_postamble[] = { | |||
225 | static void swim3_select(struct floppy_state *fs, int sel); | 225 | static void swim3_select(struct floppy_state *fs, int sel); |
226 | static void swim3_action(struct floppy_state *fs, int action); | 226 | static void swim3_action(struct floppy_state *fs, int action); |
227 | static int swim3_readbit(struct floppy_state *fs, int bit); | 227 | static int swim3_readbit(struct floppy_state *fs, int bit); |
228 | static void do_fd_request(request_queue_t * q); | 228 | static void do_fd_request(struct request_queue * q); |
229 | static void start_request(struct floppy_state *fs); | 229 | static void start_request(struct floppy_state *fs); |
230 | static void set_timeout(struct floppy_state *fs, int nticks, | 230 | static void set_timeout(struct floppy_state *fs, int nticks, |
231 | void (*proc)(unsigned long)); | 231 | void (*proc)(unsigned long)); |
@@ -290,7 +290,7 @@ static int swim3_readbit(struct floppy_state *fs, int bit) | |||
290 | return (stat & DATA) == 0; | 290 | return (stat & DATA) == 0; |
291 | } | 291 | } |
292 | 292 | ||
293 | static void do_fd_request(request_queue_t * q) | 293 | static void do_fd_request(struct request_queue * q) |
294 | { | 294 | { |
295 | int i; | 295 | int i; |
296 | for(i=0;i<floppy_count;i++) | 296 | for(i=0;i<floppy_count;i++) |
diff --git a/drivers/block/sx8.c b/drivers/block/sx8.c index 949ae93499e5..402209fec59a 100644 --- a/drivers/block/sx8.c +++ b/drivers/block/sx8.c | |||
@@ -278,7 +278,7 @@ struct carm_host { | |||
278 | unsigned int state; | 278 | unsigned int state; |
279 | u32 fw_ver; | 279 | u32 fw_ver; |
280 | 280 | ||
281 | request_queue_t *oob_q; | 281 | struct request_queue *oob_q; |
282 | unsigned int n_oob; | 282 | unsigned int n_oob; |
283 | 283 | ||
284 | unsigned int hw_sg_used; | 284 | unsigned int hw_sg_used; |
@@ -287,7 +287,7 @@ struct carm_host { | |||
287 | 287 | ||
288 | unsigned int wait_q_prod; | 288 | unsigned int wait_q_prod; |
289 | unsigned int wait_q_cons; | 289 | unsigned int wait_q_cons; |
290 | request_queue_t *wait_q[CARM_MAX_WAIT_Q]; | 290 | struct request_queue *wait_q[CARM_MAX_WAIT_Q]; |
291 | 291 | ||
292 | unsigned int n_msgs; | 292 | unsigned int n_msgs; |
293 | u64 msg_alloc; | 293 | u64 msg_alloc; |
@@ -756,7 +756,7 @@ static inline void carm_end_request_queued(struct carm_host *host, | |||
756 | assert(rc == 0); | 756 | assert(rc == 0); |
757 | } | 757 | } |
758 | 758 | ||
759 | static inline void carm_push_q (struct carm_host *host, request_queue_t *q) | 759 | static inline void carm_push_q (struct carm_host *host, struct request_queue *q) |
760 | { | 760 | { |
761 | unsigned int idx = host->wait_q_prod % CARM_MAX_WAIT_Q; | 761 | unsigned int idx = host->wait_q_prod % CARM_MAX_WAIT_Q; |
762 | 762 | ||
@@ -768,7 +768,7 @@ static inline void carm_push_q (struct carm_host *host, request_queue_t *q) | |||
768 | BUG_ON(host->wait_q_prod == host->wait_q_cons); /* overrun */ | 768 | BUG_ON(host->wait_q_prod == host->wait_q_cons); /* overrun */ |
769 | } | 769 | } |
770 | 770 | ||
771 | static inline request_queue_t *carm_pop_q(struct carm_host *host) | 771 | static inline struct request_queue *carm_pop_q(struct carm_host *host) |
772 | { | 772 | { |
773 | unsigned int idx; | 773 | unsigned int idx; |
774 | 774 | ||
@@ -783,7 +783,7 @@ static inline request_queue_t *carm_pop_q(struct carm_host *host) | |||
783 | 783 | ||
784 | static inline void carm_round_robin(struct carm_host *host) | 784 | static inline void carm_round_robin(struct carm_host *host) |
785 | { | 785 | { |
786 | request_queue_t *q = carm_pop_q(host); | 786 | struct request_queue *q = carm_pop_q(host); |
787 | if (q) { | 787 | if (q) { |
788 | blk_start_queue(q); | 788 | blk_start_queue(q); |
789 | VPRINTK("STARTED QUEUE %p\n", q); | 789 | VPRINTK("STARTED QUEUE %p\n", q); |
@@ -802,7 +802,7 @@ static inline void carm_end_rq(struct carm_host *host, struct carm_request *crq, | |||
802 | } | 802 | } |
803 | } | 803 | } |
804 | 804 | ||
805 | static void carm_oob_rq_fn(request_queue_t *q) | 805 | static void carm_oob_rq_fn(struct request_queue *q) |
806 | { | 806 | { |
807 | struct carm_host *host = q->queuedata; | 807 | struct carm_host *host = q->queuedata; |
808 | struct carm_request *crq; | 808 | struct carm_request *crq; |
@@ -833,7 +833,7 @@ static void carm_oob_rq_fn(request_queue_t *q) | |||
833 | } | 833 | } |
834 | } | 834 | } |
835 | 835 | ||
836 | static void carm_rq_fn(request_queue_t *q) | 836 | static void carm_rq_fn(struct request_queue *q) |
837 | { | 837 | { |
838 | struct carm_port *port = q->queuedata; | 838 | struct carm_port *port = q->queuedata; |
839 | struct carm_host *host = port->host; | 839 | struct carm_host *host = port->host; |
@@ -1494,7 +1494,7 @@ static int carm_init_disks(struct carm_host *host) | |||
1494 | 1494 | ||
1495 | for (i = 0; i < CARM_MAX_PORTS; i++) { | 1495 | for (i = 0; i < CARM_MAX_PORTS; i++) { |
1496 | struct gendisk *disk; | 1496 | struct gendisk *disk; |
1497 | request_queue_t *q; | 1497 | struct request_queue *q; |
1498 | struct carm_port *port; | 1498 | struct carm_port *port; |
1499 | 1499 | ||
1500 | port = &host->port[i]; | 1500 | port = &host->port[i]; |
@@ -1538,7 +1538,7 @@ static void carm_free_disks(struct carm_host *host) | |||
1538 | for (i = 0; i < CARM_MAX_PORTS; i++) { | 1538 | for (i = 0; i < CARM_MAX_PORTS; i++) { |
1539 | struct gendisk *disk = host->port[i].disk; | 1539 | struct gendisk *disk = host->port[i].disk; |
1540 | if (disk) { | 1540 | if (disk) { |
1541 | request_queue_t *q = disk->queue; | 1541 | struct request_queue *q = disk->queue; |
1542 | 1542 | ||
1543 | if (disk->flags & GENHD_FL_UP) | 1543 | if (disk->flags & GENHD_FL_UP) |
1544 | del_gendisk(disk); | 1544 | del_gendisk(disk); |
@@ -1571,7 +1571,7 @@ static int carm_init_one (struct pci_dev *pdev, const struct pci_device_id *ent) | |||
1571 | struct carm_host *host; | 1571 | struct carm_host *host; |
1572 | unsigned int pci_dac; | 1572 | unsigned int pci_dac; |
1573 | int rc; | 1573 | int rc; |
1574 | request_queue_t *q; | 1574 | struct request_queue *q; |
1575 | unsigned int i; | 1575 | unsigned int i; |
1576 | 1576 | ||
1577 | if (!printed_version++) | 1577 | if (!printed_version++) |
diff --git a/drivers/block/ub.c b/drivers/block/ub.c index 8b13d7d2cb63..c57dd2b3a0c8 100644 --- a/drivers/block/ub.c +++ b/drivers/block/ub.c | |||
@@ -503,7 +503,7 @@ static void ub_cleanup(struct ub_dev *sc) | |||
503 | { | 503 | { |
504 | struct list_head *p; | 504 | struct list_head *p; |
505 | struct ub_lun *lun; | 505 | struct ub_lun *lun; |
506 | request_queue_t *q; | 506 | struct request_queue *q; |
507 | 507 | ||
508 | while (!list_empty(&sc->luns)) { | 508 | while (!list_empty(&sc->luns)) { |
509 | p = sc->luns.next; | 509 | p = sc->luns.next; |
@@ -619,7 +619,7 @@ static struct ub_scsi_cmd *ub_cmdq_pop(struct ub_dev *sc) | |||
619 | * The request function is our main entry point | 619 | * The request function is our main entry point |
620 | */ | 620 | */ |
621 | 621 | ||
622 | static void ub_request_fn(request_queue_t *q) | 622 | static void ub_request_fn(struct request_queue *q) |
623 | { | 623 | { |
624 | struct ub_lun *lun = q->queuedata; | 624 | struct ub_lun *lun = q->queuedata; |
625 | struct request *rq; | 625 | struct request *rq; |
@@ -2273,7 +2273,7 @@ err_core: | |||
2273 | static int ub_probe_lun(struct ub_dev *sc, int lnum) | 2273 | static int ub_probe_lun(struct ub_dev *sc, int lnum) |
2274 | { | 2274 | { |
2275 | struct ub_lun *lun; | 2275 | struct ub_lun *lun; |
2276 | request_queue_t *q; | 2276 | struct request_queue *q; |
2277 | struct gendisk *disk; | 2277 | struct gendisk *disk; |
2278 | int rc; | 2278 | int rc; |
2279 | 2279 | ||
diff --git a/drivers/block/umem.c b/drivers/block/umem.c index dec74bd23496..6b7c02d6360d 100644 --- a/drivers/block/umem.c +++ b/drivers/block/umem.c | |||
@@ -114,7 +114,7 @@ struct cardinfo { | |||
114 | */ | 114 | */ |
115 | struct bio *bio, *currentbio, **biotail; | 115 | struct bio *bio, *currentbio, **biotail; |
116 | 116 | ||
117 | request_queue_t *queue; | 117 | struct request_queue *queue; |
118 | 118 | ||
119 | struct mm_page { | 119 | struct mm_page { |
120 | dma_addr_t page_dma; | 120 | dma_addr_t page_dma; |
@@ -357,7 +357,7 @@ static inline void reset_page(struct mm_page *page) | |||
357 | page->biotail = & page->bio; | 357 | page->biotail = & page->bio; |
358 | } | 358 | } |
359 | 359 | ||
360 | static void mm_unplug_device(request_queue_t *q) | 360 | static void mm_unplug_device(struct request_queue *q) |
361 | { | 361 | { |
362 | struct cardinfo *card = q->queuedata; | 362 | struct cardinfo *card = q->queuedata; |
363 | unsigned long flags; | 363 | unsigned long flags; |
@@ -541,7 +541,7 @@ static void process_page(unsigned long data) | |||
541 | -- mm_make_request | 541 | -- mm_make_request |
542 | ----------------------------------------------------------------------------------- | 542 | ----------------------------------------------------------------------------------- |
543 | */ | 543 | */ |
544 | static int mm_make_request(request_queue_t *q, struct bio *bio) | 544 | static int mm_make_request(struct request_queue *q, struct bio *bio) |
545 | { | 545 | { |
546 | struct cardinfo *card = q->queuedata; | 546 | struct cardinfo *card = q->queuedata; |
547 | pr_debug("mm_make_request %llu %u\n", | 547 | pr_debug("mm_make_request %llu %u\n", |
diff --git a/drivers/block/viodasd.c b/drivers/block/viodasd.c index dae39911a11d..85916e2665d4 100644 --- a/drivers/block/viodasd.c +++ b/drivers/block/viodasd.c | |||
@@ -400,7 +400,7 @@ error_ret: | |||
400 | /* | 400 | /* |
401 | * This is the external request processing routine | 401 | * This is the external request processing routine |
402 | */ | 402 | */ |
403 | static void do_viodasd_request(request_queue_t *q) | 403 | static void do_viodasd_request(struct request_queue *q) |
404 | { | 404 | { |
405 | struct request *req; | 405 | struct request *req; |
406 | 406 | ||
diff --git a/drivers/block/xd.c b/drivers/block/xd.c index 0d97b7eb818a..624d30f7da3f 100644 --- a/drivers/block/xd.c +++ b/drivers/block/xd.c | |||
@@ -298,7 +298,7 @@ static u_char __init xd_detect (u_char *controller, unsigned int *address) | |||
298 | } | 298 | } |
299 | 299 | ||
300 | /* do_xd_request: handle an incoming request */ | 300 | /* do_xd_request: handle an incoming request */ |
301 | static void do_xd_request (request_queue_t * q) | 301 | static void do_xd_request (struct request_queue * q) |
302 | { | 302 | { |
303 | struct request *req; | 303 | struct request *req; |
304 | 304 | ||
diff --git a/drivers/block/xd.h b/drivers/block/xd.h index 82e090fea957..cffd44a20383 100644 --- a/drivers/block/xd.h +++ b/drivers/block/xd.h | |||
@@ -104,7 +104,7 @@ static int xd_manual_geo_init (char *command); | |||
104 | static u_char xd_detect (u_char *controller, unsigned int *address); | 104 | static u_char xd_detect (u_char *controller, unsigned int *address); |
105 | static u_char xd_initdrives (void (*init_drive)(u_char drive)); | 105 | static u_char xd_initdrives (void (*init_drive)(u_char drive)); |
106 | 106 | ||
107 | static void do_xd_request (request_queue_t * q); | 107 | static void do_xd_request (struct request_queue * q); |
108 | static int xd_ioctl (struct inode *inode,struct file *file,unsigned int cmd,unsigned long arg); | 108 | static int xd_ioctl (struct inode *inode,struct file *file,unsigned int cmd,unsigned long arg); |
109 | static int xd_readwrite (u_char operation,XD_INFO *disk,char *buffer,u_int block,u_int count); | 109 | static int xd_readwrite (u_char operation,XD_INFO *disk,char *buffer,u_int block,u_int count); |
110 | static void xd_recalibrate (u_char drive); | 110 | static void xd_recalibrate (u_char drive); |
diff --git a/drivers/block/xen-blkfront.c b/drivers/block/xen-blkfront.c index 6746c29181f8..964e51634f2d 100644 --- a/drivers/block/xen-blkfront.c +++ b/drivers/block/xen-blkfront.c | |||
@@ -241,7 +241,7 @@ static inline void flush_requests(struct blkfront_info *info) | |||
241 | * do_blkif_request | 241 | * do_blkif_request |
242 | * read a block; request is in a request queue | 242 | * read a block; request is in a request queue |
243 | */ | 243 | */ |
244 | static void do_blkif_request(request_queue_t *rq) | 244 | static void do_blkif_request(struct request_queue *rq) |
245 | { | 245 | { |
246 | struct blkfront_info *info = NULL; | 246 | struct blkfront_info *info = NULL; |
247 | struct request *req; | 247 | struct request *req; |
@@ -287,7 +287,7 @@ wait: | |||
287 | 287 | ||
288 | static int xlvbd_init_blk_queue(struct gendisk *gd, u16 sector_size) | 288 | static int xlvbd_init_blk_queue(struct gendisk *gd, u16 sector_size) |
289 | { | 289 | { |
290 | request_queue_t *rq; | 290 | struct request_queue *rq; |
291 | 291 | ||
292 | rq = blk_init_queue(do_blkif_request, &blkif_io_lock); | 292 | rq = blk_init_queue(do_blkif_request, &blkif_io_lock); |
293 | if (rq == NULL) | 293 | if (rq == NULL) |
diff --git a/drivers/block/xsysace.c b/drivers/block/xsysace.c index 732ec63b6e9c..cb27e8863d7c 100644 --- a/drivers/block/xsysace.c +++ b/drivers/block/xsysace.c | |||
@@ -458,7 +458,7 @@ static inline void ace_fsm_yieldirq(struct ace_device *ace) | |||
458 | } | 458 | } |
459 | 459 | ||
460 | /* Get the next read/write request; ending requests that we don't handle */ | 460 | /* Get the next read/write request; ending requests that we don't handle */ |
461 | struct request *ace_get_next_request(request_queue_t * q) | 461 | struct request *ace_get_next_request(struct request_queue * q) |
462 | { | 462 | { |
463 | struct request *req; | 463 | struct request *req; |
464 | 464 | ||
@@ -825,7 +825,7 @@ static irqreturn_t ace_interrupt(int irq, void *dev_id) | |||
825 | /* --------------------------------------------------------------------- | 825 | /* --------------------------------------------------------------------- |
826 | * Block ops | 826 | * Block ops |
827 | */ | 827 | */ |
828 | static void ace_request(request_queue_t * q) | 828 | static void ace_request(struct request_queue * q) |
829 | { | 829 | { |
830 | struct request *req; | 830 | struct request *req; |
831 | struct ace_device *ace; | 831 | struct ace_device *ace; |
diff --git a/drivers/block/z2ram.c b/drivers/block/z2ram.c index e40fa98842e5..2d5853cbd4b0 100644 --- a/drivers/block/z2ram.c +++ b/drivers/block/z2ram.c | |||
@@ -67,7 +67,7 @@ static DEFINE_SPINLOCK(z2ram_lock); | |||
67 | static struct block_device_operations z2_fops; | 67 | static struct block_device_operations z2_fops; |
68 | static struct gendisk *z2ram_gendisk; | 68 | static struct gendisk *z2ram_gendisk; |
69 | 69 | ||
70 | static void do_z2_request(request_queue_t *q) | 70 | static void do_z2_request(struct request_queue *q) |
71 | { | 71 | { |
72 | struct request *req; | 72 | struct request *req; |
73 | while ((req = elv_next_request(q)) != NULL) { | 73 | while ((req = elv_next_request(q)) != NULL) { |