]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit857ccac90de397f5519c197823746a7c312f26e4
treea78125a35d5a277d395003651b4241eafc7dd52d
parent1622e414deb278eb8be424286eab59b188aeb9a0
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