OSDN Git Service

iser-target: Avoid using FRMR for single dma entry requests
authorVu Pham <vu@mellanox.com>
Mon, 11 Nov 2013 17:04:29 +0000 (19:04 +0200)
committerNicholas Bellinger <nab@linux-iscsi.org>
Tue, 12 Nov 2013 21:07:52 +0000 (13:07 -0800)
commitf01b9f73392b48c6cda7c2c66594c73137c776da
treee673d3361ccb1a79de47609dc36d9760411084c9
parent4863e525659abbc903aacc67fd916f12914f6c1d
iser-target: Avoid using FRMR for single dma entry requests

This patch changes isert_reg_rdma_frwr() to not use FRMR for single
dma entry requests from small I/Os, in order to avoid the associated
memory registration overhead.

Using DMA MR is sufficient here for the single dma entry requests,
and addresses a >= v3.12 performance regression.

Signed-off-by: Vu Pham <vu@mellanox.com>
Cc: <stable@vger.kernel.org> # v3.12+
Signed-off-by: Nicholas Bellinger <nab@linux-iscsi.org>
drivers/infiniband/ulp/isert/ib_isert.c