net/rds: Replace struct rds_mr's r_refcount with struct kref
And removed rds_mr_put(). Signed-off-by: Ka-Cheong Poon <ka-cheong.poon@oracle.com> Acked-by: Santosh Shilimkar <santosh.shilimkar@oracle.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:

committed by
David S. Miller

parent
022e9d6090
commit
e228a5d05e
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 2006 Oracle. All rights reserved.
|
||||
* Copyright (c) 2006, 2020 Oracle and/or its affiliates.
|
||||
*
|
||||
* This software is available to you under a choice of one of two
|
||||
* licenses. You may choose to be licensed under the terms of the GNU
|
||||
@@ -162,12 +162,12 @@ static void rds_message_purge(struct rds_message *rm)
|
||||
if (rm->rdma.op_active)
|
||||
rds_rdma_free_op(&rm->rdma);
|
||||
if (rm->rdma.op_rdma_mr)
|
||||
rds_mr_put(rm->rdma.op_rdma_mr);
|
||||
kref_put(&rm->rdma.op_rdma_mr->r_kref, __rds_put_mr_final);
|
||||
|
||||
if (rm->atomic.op_active)
|
||||
rds_atomic_free_op(&rm->atomic);
|
||||
if (rm->atomic.op_rdma_mr)
|
||||
rds_mr_put(rm->atomic.op_rdma_mr);
|
||||
kref_put(&rm->atomic.op_rdma_mr->r_kref, __rds_put_mr_final);
|
||||
}
|
||||
|
||||
void rds_message_put(struct rds_message *rm)
|
||||
|
Reference in New Issue
Block a user