]> 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)
commit546dd92f26bf2ae91e2a21d27c9ff06f58ad3726
treea78125a35d5a277d395003651b4241eafc7dd52d
parentb94d753d861b6fe49c4836a3f8b6b00097562e62
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