From: Andy Grover Date: Tue, 12 Jan 2010 20:37:17 +0000 (-0800) Subject: RDS: cleanup/fix rds_rdma_unuse X-Git-Tag: v2.6.37-rc1~147^2~499^2~99 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3ef13f3c22aaea28aff383cb0883481d24885456;p=pandora-kernel.git 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 --- Reading git-diff-tree failed