aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/blkdev.h
diff options
context:
space:
mode:
authorFUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>2008-08-28 03:17:05 -0400
committerJens Axboe <jens.axboe@oracle.com>2008-10-09 02:56:10 -0400
commita3bce90edd8f6cafe3f63b1a943800792e830178 (patch)
treec07a2962987e57997b4ff6f6c63febe1feaa0a9c /include/linux/blkdev.h
parent45333d5a31296d0af886d94f1d08f128231cab8e (diff)
block: add gfp_mask argument to blk_rq_map_user and blk_rq_map_user_iov
Currently, blk_rq_map_user and blk_rq_map_user_iov always do GFP_KERNEL allocation. This adds gfp_mask argument to blk_rq_map_user and blk_rq_map_user_iov so sg can use it (sg always does GFP_ATOMIC allocation). Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp> Signed-off-by: Douglas Gilbert <dougg@torque.net> Cc: Mike Christie <michaelc@cs.wisc.edu> Cc: James Bottomley <James.Bottomley@HansenPartnership.com> Signed-off-by: Jens Axboe <jens.axboe@oracle.com>
Diffstat (limited to 'include/linux/blkdev.h')
-rw-r--r--include/linux/blkdev.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/include/linux/blkdev.h b/include/linux/blkdev.h
index 12df8efeef19..00e388d0e221 100644
--- a/include/linux/blkdev.h
+++ b/include/linux/blkdev.h
@@ -710,11 +710,12 @@ extern void __blk_stop_queue(struct request_queue *q);
710extern void __blk_run_queue(struct request_queue *); 710extern void __blk_run_queue(struct request_queue *);
711extern void blk_run_queue(struct request_queue *); 711extern void blk_run_queue(struct request_queue *);
712extern void blk_start_queueing(struct request_queue *); 712extern void blk_start_queueing(struct request_queue *);
713extern int blk_rq_map_user(struct request_queue *, struct request *, void __user *, unsigned long); 713extern int blk_rq_map_user(struct request_queue *, struct request *,
714 void __user *, unsigned long, gfp_t);
714extern int blk_rq_unmap_user(struct bio *); 715extern int blk_rq_unmap_user(struct bio *);
715extern int blk_rq_map_kern(struct request_queue *, struct request *, void *, unsigned int, gfp_t); 716extern int blk_rq_map_kern(struct request_queue *, struct request *, void *, unsigned int, gfp_t);
716extern int blk_rq_map_user_iov(struct request_queue *, struct request *, 717extern int blk_rq_map_user_iov(struct request_queue *, struct request *,
717 struct sg_iovec *, int, unsigned int); 718 struct sg_iovec *, int, unsigned int, gfp_t);
718extern int blk_execute_rq(struct request_queue *, struct gendisk *, 719extern int blk_execute_rq(struct request_queue *, struct gendisk *,
719 struct request *, int); 720 struct request *, int);
720extern void blk_execute_rq_nowait(struct request_queue *, struct gendisk *, 721extern void blk_execute_rq_nowait(struct request_queue *, struct gendisk *,