RDMA/core: Use simpler spin lock irq API from blocking context
authorParav Pandit <parav@mellanox.com>
Tue, 28 Aug 2018 12:08:44 +0000 (15:08 +0300)
committerJason Gunthorpe <jgg@mellanox.com>
Thu, 6 Sep 2018 19:45:38 +0000 (13:45 -0600)
commit2d65f49ff961da5e974a48e250edd24b0c6f54d6
tree8fab02c6621b05a4d876ea39ff69ada8de266758
parent4512acd0d34cea1bc0d9c69c1a60174016e121d7
RDMA/core: Use simpler spin lock irq API from blocking context

add_client_context(), ib_unregister_device() and ib_unregister_client()
are designed to call from blocking context.  There is no need to save and
restore last interrupt state when called from such blocking context.  Even
though this is not a performance path, using the right spin lock API is
desired for code clarity.

To avoid checkpatch warning while removing flags, sizeof() is used.

Signed-off-by: Parav Pandit <parav@mellanox.com>
Reviewed-by: Daniel Jurgens <danielj@mellanox.com>
Signed-off-by: Leon Romanovsky <leonro@mellanox.com>
Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
drivers/infiniband/core/device.c