Skip to content
Commit 3ef13f3c authored by Andy Grover's avatar Andy Grover
Browse files

RDS: cleanup/fix rds_rdma_unuse



First, it looks to me like the atomic_inc is wrong.
We should be decrementing refcount only once here, no? It's
already being done by the mr_put() at the end.

Second, simplify the logic a bit by bailing early (with a warning)
if !mr.

Signed-off-by: default avatarAndy Grover <andy.grover@oracle.com>
parent e779137a
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment