IB/qib: Fix UC MR refs for immediate operations
authorMike Marciniszyn <mike.marciniszyn@intel.com>
Wed, 27 Jun 2012 22:33:05 +0000 (18:33 -0400)
committerRoland Dreier <roland@purestorage.com>
Mon, 9 Jul 2012 01:05:19 +0000 (18:05 -0700)
commit354dff1bd8ccd41b6e8421226d586d35e7fb8920
treedc228fa9509f66c288f76063dc1fb3e5a6493dbb
parent6887a4131da3adaab011613776d865f4bcfb5678
IB/qib: Fix UC MR refs for immediate operations

An MR reference leak exists when handling UC RDMA writes with
immediate data because we manipulate the reference counts as if the
operation had been a send.

This patch moves the last_imm label so that the RDMA write operations
with immediate data converge at the cq building code.  The copy/mr
deref code is now done correctly prior to the branch to last_imm.

Reviewed-by: Edward Mascarenhas <edward.mascarenhas@intel.com>
Signed-off-by: Mike Marciniszyn <mike.marciniszyn@intel.com>
Signed-off-by: Roland Dreier <roland@purestorage.com>
drivers/infiniband/hw/qib/qib_uc.c