]> git.baikalelectronics.ru Git - kernel.git/commit
IB/iser: Push the decision what memory key to use into fast_reg_mr routine
authorSagi Grimberg <sagig@mellanox.com>
Wed, 5 Mar 2014 17:43:40 +0000 (19:43 +0200)
committerRoland Dreier <roland@purestorage.com>
Tue, 18 Mar 2014 05:33:57 +0000 (22:33 -0700)
commit1c188faed085cb23f72ee5e027058762c475b087
treecddcf71139442be958ff177f7e5ed73cbcec20e7
parentc506f26221dc8e6f68d3604b3a98874772e360ea
IB/iser: Push the decision what memory key to use into fast_reg_mr routine

This is a preparation step for T10-PI offload support.  We prefer to
push the desicion of which mkey to use (global or fastreg) to
iser_fast_reg_mr.  We choose to do this since in T10-PI we may need to
register for protection buffers and in this case we wish to simplify
iser_fast_reg_mr instead of repeating the logic of which key to use.

This patch does not change any functionality.

Signed-off-by: Sagi Grimberg <sagig@mellanox.com>
Signed-off-by: Alex Tabachnik <alext@mellanox.com>
Signed-off-by: Roland Dreier <roland@purestorage.com>
drivers/infiniband/ulp/iser/iser_memory.c