iblock: fix handling of large requests
authorChristoph Hellwig <hch@infradead.org>
Thu, 2 Feb 2012 21:51:24 +0000 (16:51 -0500)
committerNicholas Bellinger <nab@linux-iscsi.org>
Tue, 7 Feb 2012 06:48:46 +0000 (06:48 +0000)
commit5c55125f4794f4e77574fc09839cb47b0eb45b06
tree2e35bfcfe983dee5d5afbf0437dd3ff5f9a4938a
parent3011684c0b0b77b0f88113ef1c15b18befc6734a
iblock: fix handling of large requests

Requesting to many bvecs upsets bio_alloc_bioset, so limit the number we ask
for to the amount it can handle.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Nicholas Bellinger <nab@linux-iscsi.org>
drivers/target/target_core_iblock.c