aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/blkdev.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/linux/blkdev.h')
-rw-r--r--include/linux/blkdev.h24
1 files changed, 9 insertions, 15 deletions
diff --git a/include/linux/blkdev.h b/include/linux/blkdev.h
index 7bfcde2d5578..36a6eacefe20 100644
--- a/include/linux/blkdev.h
+++ b/include/linux/blkdev.h
@@ -331,10 +331,6 @@ struct request_pm_state
331 331
332#include <linux/elevator.h> 332#include <linux/elevator.h>
333 333
334typedef int (merge_request_fn) (request_queue_t *, struct request *,
335 struct bio *);
336typedef int (merge_requests_fn) (request_queue_t *, struct request *,
337 struct request *);
338typedef void (request_fn_proc) (request_queue_t *q); 334typedef void (request_fn_proc) (request_queue_t *q);
339typedef int (make_request_fn) (request_queue_t *q, struct bio *bio); 335typedef int (make_request_fn) (request_queue_t *q, struct bio *bio);
340typedef int (prep_rq_fn) (request_queue_t *, struct request *); 336typedef int (prep_rq_fn) (request_queue_t *, struct request *);
@@ -342,7 +338,6 @@ typedef void (unplug_fn) (request_queue_t *);
342 338
343struct bio_vec; 339struct bio_vec;
344typedef int (merge_bvec_fn) (request_queue_t *, struct bio *, struct bio_vec *); 340typedef int (merge_bvec_fn) (request_queue_t *, struct bio *, struct bio_vec *);
345typedef void (activity_fn) (void *data, int rw);
346typedef int (issue_flush_fn) (request_queue_t *, struct gendisk *, sector_t *); 341typedef int (issue_flush_fn) (request_queue_t *, struct gendisk *, sector_t *);
347typedef void (prepare_flush_fn) (request_queue_t *, struct request *); 342typedef void (prepare_flush_fn) (request_queue_t *, struct request *);
348typedef void (softirq_done_fn)(struct request *); 343typedef void (softirq_done_fn)(struct request *);
@@ -377,14 +372,10 @@ struct request_queue
377 struct request_list rq; 372 struct request_list rq;
378 373
379 request_fn_proc *request_fn; 374 request_fn_proc *request_fn;
380 merge_request_fn *back_merge_fn;
381 merge_request_fn *front_merge_fn;
382 merge_requests_fn *merge_requests_fn;
383 make_request_fn *make_request_fn; 375 make_request_fn *make_request_fn;
384 prep_rq_fn *prep_rq_fn; 376 prep_rq_fn *prep_rq_fn;
385 unplug_fn *unplug_fn; 377 unplug_fn *unplug_fn;
386 merge_bvec_fn *merge_bvec_fn; 378 merge_bvec_fn *merge_bvec_fn;
387 activity_fn *activity_fn;
388 issue_flush_fn *issue_flush_fn; 379 issue_flush_fn *issue_flush_fn;
389 prepare_flush_fn *prepare_flush_fn; 380 prepare_flush_fn *prepare_flush_fn;
390 softirq_done_fn *softirq_done_fn; 381 softirq_done_fn *softirq_done_fn;
@@ -411,8 +402,6 @@ struct request_queue
411 */ 402 */
412 void *queuedata; 403 void *queuedata;
413 404
414 void *activity_data;
415
416 /* 405 /*
417 * queue needs bounce pages for pages above this limit 406 * queue needs bounce pages for pages above this limit
418 */ 407 */
@@ -653,6 +642,11 @@ extern int sg_scsi_ioctl(struct file *, struct request_queue *,
653 struct gendisk *, struct scsi_ioctl_command __user *); 642 struct gendisk *, struct scsi_ioctl_command __user *);
654 643
655/* 644/*
645 * Temporary export, until SCSI gets fixed up.
646 */
647extern int ll_back_merge_fn(request_queue_t *, struct request *, struct bio *);
648
649/*
656 * A queue has just exitted congestion. Note this in the global counter of 650 * A queue has just exitted congestion. Note this in the global counter of
657 * congested queues, and wake up anyone who was waiting for requests to be 651 * congested queues, and wake up anyone who was waiting for requests to be
658 * put back. 652 * put back.
@@ -677,11 +671,11 @@ extern void blk_sync_queue(struct request_queue *q);
677extern void __blk_stop_queue(request_queue_t *q); 671extern void __blk_stop_queue(request_queue_t *q);
678extern void blk_run_queue(request_queue_t *); 672extern void blk_run_queue(request_queue_t *);
679extern void blk_start_queueing(request_queue_t *); 673extern void blk_start_queueing(request_queue_t *);
680extern void blk_queue_activity_fn(request_queue_t *, activity_fn *, void *); 674extern int blk_rq_map_user(request_queue_t *, struct request *, void __user *, unsigned long);
681extern int blk_rq_map_user(request_queue_t *, struct request *, void __user *, unsigned int); 675extern int blk_rq_unmap_user(struct bio *);
682extern int blk_rq_unmap_user(struct bio *, unsigned int);
683extern int blk_rq_map_kern(request_queue_t *, struct request *, void *, unsigned int, gfp_t); 676extern int blk_rq_map_kern(request_queue_t *, struct request *, void *, unsigned int, gfp_t);
684extern int blk_rq_map_user_iov(request_queue_t *, struct request *, struct sg_iovec *, int); 677extern int blk_rq_map_user_iov(request_queue_t *, struct request *,
678 struct sg_iovec *, int, unsigned int);
685extern int blk_execute_rq(request_queue_t *, struct gendisk *, 679extern int blk_execute_rq(request_queue_t *, struct gendisk *,
686 struct request *, int); 680 struct request *, int);
687extern void blk_execute_rq_nowait(request_queue_t *, struct gendisk *, 681extern void blk_execute_rq_nowait(request_queue_t *, struct gendisk *,