aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJens Axboe <jens.axboe@oracle.com>2008-10-17 08:03:08 -0400
committerJens Axboe <jens.axboe@oracle.com>2008-10-17 08:03:08 -0400
commitf73e2d13a16cc88c4faa4729967f92bfeec8a142 (patch)
tree6844c0e85b9b4ecdc8f2fc30ce8e7d2152d0c417
parent713ada9ba94f2ad874cffd074b83e3dc681ca82f (diff)
block: remove __generic_unplug_device() from exports
The only out-of-core user is IDE, and that should be using blk_start_queueing() instead. Signed-off-by: Jens Axboe <jens.axboe@oracle.com>
-rw-r--r--block/blk-core.c1
-rw-r--r--block/blk.h1
-rw-r--r--drivers/ide/ide-io.c4
-rw-r--r--include/linux/blkdev.h1
4 files changed, 3 insertions, 4 deletions
diff --git a/block/blk-core.c b/block/blk-core.c
index fcbd56dd41fa..81a496004976 100644
--- a/block/blk-core.c
+++ b/block/blk-core.c
@@ -257,7 +257,6 @@ void __generic_unplug_device(struct request_queue *q)
257 257
258 q->request_fn(q); 258 q->request_fn(q);
259} 259}
260EXPORT_SYMBOL(__generic_unplug_device);
261 260
262/** 261/**
263 * generic_unplug_device - fire a request queue 262 * generic_unplug_device - fire a request queue
diff --git a/block/blk.h b/block/blk.h
index e5c579769963..d2e49af90db5 100644
--- a/block/blk.h
+++ b/block/blk.h
@@ -20,6 +20,7 @@ void blk_unplug_timeout(unsigned long data);
20void blk_rq_timed_out_timer(unsigned long data); 20void blk_rq_timed_out_timer(unsigned long data);
21void blk_delete_timer(struct request *); 21void blk_delete_timer(struct request *);
22void blk_add_timer(struct request *); 22void blk_add_timer(struct request *);
23void __generic_unplug_device(struct request_queue *);
23 24
24/* 25/*
25 * Internal atomic flags for request handling 26 * Internal atomic flags for request handling
diff --git a/drivers/ide/ide-io.c b/drivers/ide/ide-io.c
index 77c6eaeacefa..7162d67562af 100644
--- a/drivers/ide/ide-io.c
+++ b/drivers/ide/ide-io.c
@@ -1493,8 +1493,8 @@ void ide_do_drive_cmd(ide_drive_t *drive, struct request *rq)
1493 1493
1494 spin_lock_irqsave(&ide_lock, flags); 1494 spin_lock_irqsave(&ide_lock, flags);
1495 hwgroup->rq = NULL; 1495 hwgroup->rq = NULL;
1496 __elv_add_request(drive->queue, rq, ELEVATOR_INSERT_FRONT, 1); 1496 __elv_add_request(drive->queue, rq, ELEVATOR_INSERT_FRONT, 0);
1497 __generic_unplug_device(drive->queue); 1497 blk_start_queueing(drive->queue);
1498 spin_unlock_irqrestore(&ide_lock, flags); 1498 spin_unlock_irqrestore(&ide_lock, flags);
1499} 1499}
1500 1500
diff --git a/include/linux/blkdev.h b/include/linux/blkdev.h
index a92d9e4ea96e..8eed8b15f992 100644
--- a/include/linux/blkdev.h
+++ b/include/linux/blkdev.h
@@ -856,7 +856,6 @@ extern void blk_ordered_complete_seq(struct request_queue *, unsigned, int);
856extern int blk_rq_map_sg(struct request_queue *, struct request *, struct scatterlist *); 856extern int blk_rq_map_sg(struct request_queue *, struct request *, struct scatterlist *);
857extern void blk_dump_rq_flags(struct request *, char *); 857extern void blk_dump_rq_flags(struct request *, char *);
858extern void generic_unplug_device(struct request_queue *); 858extern void generic_unplug_device(struct request_queue *);
859extern void __generic_unplug_device(struct request_queue *);
860extern long nr_blockdev_pages(void); 859extern long nr_blockdev_pages(void);
861 860
862int blk_get_queue(struct request_queue *); 861int blk_get_queue(struct request_queue *);