summaryrefslogtreecommitdiff
path: root/include/uapi/linux
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 10:59:26 -0700
commitee581331ca690f9624adb908a9bcda86aeb474e3 (patch)
tree8afe950c979ff6fe92b0e89617988ba39d6324b4 /include/uapi/linux
parent0a6dd896be6b5912adef04a44b0b280932669814 (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: dropped block/test-iosched and mmc_test related changes] Signed-off-by: Venkat Gopalakrishnan <venkatg@codeaurora.org>
Diffstat (limited to 'include/uapi/linux')
0 files changed, 0 insertions, 0 deletions