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)
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>

No differences found