IB/rdmavt: Eliminate redundant opcode test in mr ref clear
authorIra Weiny <ira.weiny@intel.com>
Thu, 28 Jul 2016 01:07:36 +0000 (21:07 -0400)
committerDoug Ledford <dledford@redhat.com>
Wed, 3 Aug 2016 02:46:21 +0000 (22:46 -0400)
commitfe508272c963d62de4183c32b6883c3d54c557ef
treec2385e5031ec34ab82ba9e37134e61681dfccb51
parent042b0159aa6c230093c4318b689ef9a5b89f29e2
IB/rdmavt: Eliminate redundant opcode test in mr ref clear

The use of the specific opcode test is redundant since
all ack entry users correctly manipulate the mr pointer
to selectively trigger the reference clearing.

The overly specific test hinders the use of implementation
specific operations.

The change needs to get rid of the union to insure that
an atomic value is not seen as an MR pointer.

Reviewed-by: Ashutosh Dixit <ashutosh.dixit@intel.com>
Signed-off-by: Mike Marciniszyn <mike.marciniszyn@intel.com>
Signed-off-by: Ira Weiny <ira.weiny@intel.com>
Signed-off-by: Doug Ledford <dledford@redhat.com>
drivers/infiniband/sw/rdmavt/qp.c
include/rdma/rdmavt_qp.h