IB/iser: Remove code duplication for a single DMA entry
authorSagi Grimberg <sagig@mellanox.com>
Tue, 14 Apr 2015 15:08:26 +0000 (18:08 +0300)
committerDoug Ledford <dledford@redhat.com>
Wed, 15 Apr 2015 20:07:13 +0000 (16:07 -0400)
commitad1e5672429eadd5a7f9613bf2e59546a2eeef13
treecf83172af5bb1b2cecfb3178c8f1657a09ed6cdb
parent6ef8bb837dd7e60f078084d4842a43fd163fb4a2
IB/iser: Remove code duplication for a single DMA entry

In singleton scatterlists, DMA memory registration code
is taken both for Fastreg and FMR code paths. Move it to
a function.

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/iser_memory.c