]> 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)
commit93ee11cf9ea005edb73f0b8d13a626c1867a5812
tree84b492b7d4c06c1083007b05fbcdae1bbb1f551f
parent8e6cbd129edff420d7989b03555ba3df55e8f8bb
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