summaryrefslogtreecommitdiffstats
path: root/drivers/infiniband/hw/cxgb4/mem.c
diff options
context:
space:
mode:
authorChristoph Hellwig <hch@lst.de>2015-12-23 19:12:54 +0100
committerDoug Ledford <dledford@redhat.com>2015-12-23 14:29:06 -0500
commitab67ed8de0250e9ad7956ff4d98c3c98858b6c3c (patch)
tree57db1670b47a399a42277568be2f45e4b886fb74 /drivers/infiniband/hw/cxgb4/mem.c
parent7cf9ff643b7f709173ca6ff6376fdff5b8d16124 (diff)
downloadblackbird-op-linux-ab67ed8de0250e9ad7956ff4d98c3c98858b6c3c.tar.gz
blackbird-op-linux-ab67ed8de0250e9ad7956ff4d98c3c98858b6c3c.zip
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/infiniband/hw/cxgb4/mem.c')
-rw-r--r--drivers/infiniband/hw/cxgb4/mem.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/drivers/infiniband/hw/cxgb4/mem.c b/drivers/infiniband/hw/cxgb4/mem.c
index 1eb833aa0eb1..7849890c4781 100644
--- a/drivers/infiniband/hw/cxgb4/mem.c
+++ b/drivers/infiniband/hw/cxgb4/mem.c
@@ -704,9 +704,6 @@ int c4iw_dereg_mr(struct ib_mr *ib_mr)
u32 mmid;
PDBG("%s ib_mr %p\n", __func__, ib_mr);
- /* There can be no memory windows */
- if (atomic_read(&ib_mr->usecnt))
- return -EINVAL;
mhp = to_c4iw_mr(ib_mr);
rhp = mhp->rhp;
OpenPOWER on IntegriCloud