]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit4cf374e6e17f64dc324ae2640ce3dc0050cbeebd
tree84b492b7d4c06c1083007b05fbcdae1bbb1f551f
parent19e2bcba805799b0991a062fccd9504a745941d8
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