IB/iser: Remove a redundant struct iser_data_buf
authorSagi Grimberg <sagig@mellanox.com>
Tue, 14 Apr 2015 15:08:15 +0000 (18:08 +0300)
committerDoug Ledford <dledford@redhat.com>
Wed, 15 Apr 2015 20:07:12 +0000 (16:07 -0400)
commite3784bd1d9f1039f28dff2c0c0d17daabb3d6761
tree3fcdf1f97cf69334da4ea6920634ff2e35427a77
parentecc3993a2ad2a4ce8f1a58a08e9177f21015492d
IB/iser: Remove a redundant struct iser_data_buf

No need to keep two iser_data_buf structures just in case we use
mem copy. We can avoid that just by adding a pointer to the original
sg. So keep only two iser_data_buf per command (data and protection)
and pass the relevant data_buf to bounce buffer routine.

This patch does not change any functionality.

Signed-off-by: Sagi Grimberg <sagig@mellanox.com>
Signed-off-by: Adir Lev <adirl@mellanox.com>
Signed-off-by: Doug Ledford <dledford@redhat.com>
drivers/infiniband/ulp/iser/iscsi_iser.h
drivers/infiniband/ulp/iser/iser_initiator.c
drivers/infiniband/ulp/iser/iser_memory.c