diff options
author | Christoph Hellwig <hch@lst.de> | 2015-12-23 18:12:54 (GMT) |
---|---|---|
committer | Doug Ledford <dledford@redhat.com> | 2015-12-23 19:29:06 (GMT) |
commit | ab67ed8de0250e9ad7956ff4d98c3c98858b6c3c (patch) | |
tree | 57db1670b47a399a42277568be2f45e4b886fb74 /drivers/staging/rdma | |
parent | 7cf9ff643b7f709173ca6ff6376fdff5b8d16124 (diff) | |
download | linux-ab67ed8de0250e9ad7956ff4d98c3c98858b6c3c.tar.xz |
IB: remove the write-only usecnt field from struct ib_mr
Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Bart Van Assche <bvanassche@sandisk.com>
Reviewed-by: Sagi Grimberg <sagig@mellanox.com>
Signed-off-by: Doug Ledford <dledford@redhat.com>
Diffstat (limited to 'drivers/staging/rdma')
-rw-r--r-- | drivers/staging/rdma/ehca/ehca_mrmw.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/staging/rdma/ehca/ehca_mrmw.c b/drivers/staging/rdma/ehca/ehca_mrmw.c index 1814af7..06b832b 100644 --- a/drivers/staging/rdma/ehca/ehca_mrmw.c +++ b/drivers/staging/rdma/ehca/ehca_mrmw.c @@ -1339,7 +1339,6 @@ int ehca_reg_internal_maxmr( e_mr->ib.ib_mr.pd = &e_pd->ib_pd; e_mr->ib.ib_mr.uobject = NULL; atomic_inc(&(e_pd->ib_pd.usecnt)); - atomic_set(&(e_mr->ib.ib_mr.usecnt), 0); *e_maxmr = e_mr; return 0; |