From 3bec8a5ac61e5fdd925460a20de267ccf2cefcfe Mon Sep 17 00:00:00 2001 From: Jens Axboe Date: Thu, 24 Apr 2003 08:42:43 -0700 Subject: [PATCH] cleanup bio_map_user and helper Bart did this patch, I changed it a bit. Basically it cleans the mapping interface up a bit, and adds a little helper to set up the request from the bio. In addition, it fixes a long standing bug where bio_map_user() would call blk_queue_bounce() without the direction bit being set, auch. - Abstract out bio request preparation - Have bio_map_user() set data direction (fixes bug where blk_queue_bounce() is called without it set) - Split bio_map_user() in two --- include/linux/blkdev.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'include') diff --git a/include/linux/blkdev.h b/include/linux/blkdev.h index 36741d178f34..3899acc8a4f1 100644 --- a/include/linux/blkdev.h +++ b/include/linux/blkdev.h @@ -391,6 +391,8 @@ extern void blk_queue_free_tags(request_queue_t *); extern void blk_queue_invalidate_tags(request_queue_t *); extern void blk_congestion_wait(int rw, long timeout); +extern void blk_rq_bio_prep(request_queue_t *, struct request *, struct bio *); + #define MAX_PHYS_SEGMENTS 128 #define MAX_HW_SEGMENTS 128 #define MAX_SECTORS 255 -- cgit v1.2.3