IB/iser: Use separate buffers for the login request/response
authorOr Gerlitz <ogerlitz@mellanox.com>
Thu, 3 Nov 2011 22:19:46 +0000 (00:19 +0200)
committerRoland Dreier <roland@purestorage.com>
Fri, 4 Nov 2011 16:30:52 +0000 (09:30 -0700)
commit2c4ce609347f2a45792c8d9ebb5af11217766cb6
treea78125a35d5a277d395003651b4241eafc7dd52d
parentf470f8d4e702593ee1d0852871ad80373bce707b
IB/iser: Use separate buffers for the login request/response

The driver counted on the transactional nature of iSCSI login/text
flows and used the same buffer for both the request and the response.
We also went further and did DMA mapping only once, with
DMA_FROM_DEVICE, which violates the DMA mapping API.  Fix that by
using different buffers, one for requests and one for responses, and
use the correct DMA mapping direction for each.

Signed-off-by: Or Gerlitz <ogerlitz@mellanox.com>
Signed-off-by: Roland Dreier <roland@purestorage.com>
drivers/infiniband/ulp/iser/iscsi_iser.h
drivers/infiniband/ulp/iser/iser_initiator.c
drivers/infiniband/ulp/iser/iser_verbs.c