target/iscsi: Go back to core allocating data buffer for cmd
authorAndy Grover <agrover@redhat.com>
Tue, 3 Apr 2012 22:51:29 +0000 (15:51 -0700)
committerNicholas Bellinger <nab@linux-iscsi.org>
Sun, 15 Apr 2012 00:40:39 +0000 (17:40 -0700)
commitbfb79eac2026b411df9e253a9c350039b4b04bb7
tree84b492b7d4c06c1083007b05fbcdae1bbb1f551f
parent11e319ed95dc0e8f0fa4cad88b33152e9203b262
target/iscsi: Go back to core allocating data buffer for cmd

We originally changed iscsi to allocate its own buffers just as an
intermediate step to clean up some core buffer allocation mechanisms. Now
we can put it back.

Also had to change allocate_iovecs to use data_length instead of
t_data_nents because iovecs are now allocated before the data buffer, thus
t_data_nents is not yet initialized.

Signed-off-by: Andy Grover <agrover@redhat.com>
Signed-off-by: Nicholas Bellinger <nab@linux-iscsi.org>
drivers/target/iscsi/iscsi_target.c
drivers/target/iscsi/iscsi_target_core.h
drivers/target/iscsi/iscsi_target_util.c