aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/blkdev.h
diff options
context:
space:
mode:
authorJens Axboe <jens.axboe@oracle.com>2007-09-21 10:41:07 +0200
committerJens Axboe <jens.axboe@oracle.com>2007-10-16 11:03:53 +0200
commita0cd128542cd9c67f27458a08e989db486a293ce (patch)
treebc4ca6dd3cbfa230de486d79480f7a99bbfb6232 /include/linux/blkdev.h
parentbio: make freeing of ->bi_io_vec conditional in bio_free() (diff)
downloadlinux-dev-a0cd128542cd9c67f27458a08e989db486a293ce.tar.xz
linux-dev-a0cd128542cd9c67f27458a08e989db486a293ce.zip
block: add end_queued_request() and end_dequeued_request() helpers
We can use this helper in the elevator core for BLKPREP_KILL, and it'll also be useful for the empty barrier patch. Signed-off-by: Jens Axboe <jens.axboe@oracle.com>
Diffstat (limited to 'include/linux/blkdev.h')
-rw-r--r--include/linux/blkdev.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/include/linux/blkdev.h b/include/linux/blkdev.h
index 5ed888b04b29..610967992ddb 100644
--- a/include/linux/blkdev.h
+++ b/include/linux/blkdev.h
@@ -729,7 +729,9 @@ static inline void blk_run_address_space(struct address_space *mapping)
extern int end_that_request_first(struct request *, int, int);
extern int end_that_request_chunk(struct request *, int, int);
extern void end_that_request_last(struct request *, int);
-extern void end_request(struct request *req, int uptodate);
+extern void end_request(struct request *, int);
+extern void end_queued_request(struct request *, int);
+extern void end_dequeued_request(struct request *, int);
extern void blk_complete_request(struct request *);
/*