target: cleanup iblock bio submission
authorChristoph Hellwig <hch@infradead.org>
Sun, 25 Sep 2011 18:56:24 +0000 (14:56 -0400)
committerNicholas Bellinger <nab@linux-iscsi.org>
Mon, 24 Oct 2011 03:20:43 +0000 (03:20 +0000)
commitdbbf3e94c2b26988d3c41af63e50189e9133eb28
tree4cb6f91946d2229c7eb521fa460bc0c2407107a5
parentb6b4e61ff4e26d6721b2607ea23402825a38c402
target: cleanup iblock bio submission

Move the entirely bio allocation, mapping and submission into ->do_task.
This

 a) avoids blocking the I/O submission thread unessecarily, and
 b) simplifies the code greatly

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