Andy Grover 3ef13f3c22 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: Andy Grover <andy.grover@oracle.com>
2010-09-08 18:11:35 -07:00
..
2010-08-19 00:14:36 -07:00
2010-08-18 14:26:31 -07:00
2010-09-06 18:48:45 -07:00
2010-09-06 18:48:45 -07:00
2010-09-02 10:12:06 -07:00
2010-06-03 03:21:52 -07:00
2010-05-17 23:23:13 -07:00
2010-09-02 09:19:32 -07:00
2010-09-02 10:04:18 -07:00
2010-08-18 23:35:58 -07:00
2010-04-20 16:37:13 -07:00
2010-09-08 18:11:35 -07:00
2010-08-01 00:32:12 -07:00
2010-08-24 14:48:10 -07:00
2010-09-06 18:48:45 -07:00
2010-09-06 18:48:45 -07:00
2010-08-31 14:20:40 -04:00
2010-05-17 17:39:28 -07:00