summaryrefslogtreecommitdiff
path: root/fs/buffer.c
diff options
context:
space:
mode:
authorGilad Broner <gbroner@codeaurora.org>2015-01-08 12:26:07 +0200
committerDavid Keitel <dkeitel@codeaurora.org>2016-03-22 11:01:58 -0700
commitf3664f905ddcb4e7329985049e73e9b7d56e0ed1 (patch)
tree4a74c9cf16206871e02282ef6b2366875e15c703 /fs/buffer.c
parent60f3461f17b575ac2252d8171507791ce848b37a (diff)
block: test-iosched: fix bio allocation for test requests
Unit tests submit large requests of 512KB made of 128 bios. Current allocation was done via kmalloc which may not be able to allocate such a large buffer which is also physically contiguous. Using kmalloc to allocate each bio separately is also problematic as it might not be page aligned. Some bio may end up using more than a single memory segment which will fail the mapping of the bios to the request which supports up to 128 physical segments. To avoid such failure, allocate a separate page for each bio (bio size is single page size). Change-Id: Id0da394d458942e093d924bc7aa23aa3231cdca7 Signed-off-by: Gilad Broner <gbroner@codeaurora.org> [venkatg@codeaurora.org: Drop changes to mmc_block_test.c] Signed-off-by: Venkat Gopalakrishnan <venkatg@codeaurora.org>
Diffstat (limited to 'fs/buffer.c')
0 files changed, 0 insertions, 0 deletions