target: cleanup pscsi request submission
authorChristoph Hellwig <hch@infradead.org>
Sun, 25 Sep 2011 18:56:32 +0000 (14:56 -0400)
committerNicholas Bellinger <nab@linux-iscsi.org>
Mon, 24 Oct 2011 03:20:44 +0000 (03:20 +0000)
commit02b1a7463420e1cebe86c6755c44d3bd9489829e
tree59ec8003f5c8a7937c0b9faee84c926793814ba8
parentdbbf3e94c2b26988d3c41af63e50189e9133eb28
target: cleanup pscsi request submission

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

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

Note that the code seems to have various error handling issues, mostly
related to bidi handling in the current form.  I've added comments about
those but not tried to fix them in this commit.

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