]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit625410e6bd5b13617b02efefd7fa764e243d75a4
treec2385e5031ec34ab82ba9e37134e61681dfccb51
parentf9636f82d65c1dff04bd3c8df98ae8006faafb66
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