mirror of
https://github.com/SCST-project/scst.git
synced 2026-05-17 02:31:27 +00:00
isert-scst: Cache L_Key
This patch does not change any functionality. git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@7019 d57e44dd-8a1f-0410-8b47-8ef2f437770f
This commit is contained in:
@@ -234,6 +234,7 @@ struct isert_device {
|
||||
struct ib_device *ib_dev;
|
||||
struct ib_pd *pd;
|
||||
struct ib_mr *mr;
|
||||
u32 lkey;
|
||||
|
||||
struct list_head devs_node;
|
||||
/* conn_list and refcnt protected by dev_list_mutex */
|
||||
|
||||
@@ -201,7 +201,7 @@ static int isert_alloc_for_rdma(struct isert_cmnd *pdu, int sge_cnt,
|
||||
isert_wr_set_fields(&pdu->wr[i], isert_conn, pdu);
|
||||
|
||||
for (i = 0; i < sge_cnt; ++i)
|
||||
pdu->sg_pool[i].lkey = isert_conn->isert_dev->mr->lkey;
|
||||
pdu->sg_pool[i].lkey = isert_conn->isert_dev->lkey;
|
||||
|
||||
goto out;
|
||||
|
||||
|
||||
@@ -1092,6 +1092,7 @@ static struct isert_device *isert_device_create(struct ib_device *ib_dev)
|
||||
isert_dev->ib_dev = ib_dev;
|
||||
isert_dev->pd = pd;
|
||||
isert_dev->mr = mr;
|
||||
isert_dev->lkey = mr->lkey;
|
||||
|
||||
INIT_LIST_HEAD(&isert_dev->conn_list);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user