Commit 07359fc6 authored by FUJITA Tomonori's avatar FUJITA Tomonori Committed by Jens Axboe

block: add bounce support to blk_rq_map_user_iov

blk_rq_map_user_iov can't handle the bounce buffer (it means that the
bio_map_user_iov path doesn't work with a LLD that needs GFP_DMA).

This patch fixes blk_rq_map_user_iov to support the bounce buffer.
Signed-off-by: default avatarFUJITA Tomonori <>
Cc: Mike Christie <>
Signed-off-by: default avatarJens Axboe <>
parent c265a7f4
......@@ -210,6 +210,7 @@ int blk_rq_map_user_iov(struct request_queue *q, struct request *rq,
if (!bio_flagged(bio, BIO_USER_MAPPED))
rq->cmd_flags |= REQ_COPY_USER;
blk_queue_bounce(q, &bio);
blk_rq_bio_prep(q, rq, bio);
rq->buffer = rq->data = NULL;
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment