Commit c7616924 authored by Andrew Morton's avatar Andrew Morton Committed by Linus Torvalds

[PATCH] loop: remove blk_queue_bounce

From: Hugh Dickins <hugh@veritas.com>

What purpose does loop_make_request's blk_queue_bounce serve?  None, it's
just a relic from before the kmaps were added to loop's transfers, and ties
up mempooled resources - in the file-backed case, with no guarantee they'll
soon be freed.  And what purpose does loop_set_fd's blk_queue_bounce_limit
serve?  None, blk_queue_make_request did that.
parent d31f07fc
......@@ -548,8 +548,6 @@ static int loop_make_request(request_queue_t *q, struct bio *old_bio)
goto err;
}
blk_queue_bounce(q, &old_bio);
/*
* file backed, queue for loop_thread to handle
*/
......@@ -742,7 +740,6 @@ static int loop_set_fd(struct loop_device *lo, struct file *lo_file,
* device
*/
blk_queue_make_request(&lo->lo_queue, loop_make_request);
blk_queue_bounce_limit(&lo->lo_queue, BLK_BOUNCE_HIGH);
lo->lo_queue.queuedata = lo;
/*
......
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