RDS: cleanup/fix rds_rdma_unuse
authorAndy Grover <andy.grover@oracle.com>
Tue, 12 Jan 2010 20:37:17 +0000 (12:37 -0800)
committerAndy Grover <andy.grover@oracle.com>
Thu, 9 Sep 2010 01:11:35 +0000 (18:11 -0700)
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: Andy Grover <andy.grover@oracle.com>

No differences found