]> asedeno.scripts.mit.edu Git - linux.git/commit
RDMA/restrack: Refactor user/kernel restrack additions
authorLeon Romanovsky <leonro@mellanox.com>
Wed, 30 Jan 2019 10:49:05 +0000 (12:49 +0200)
committerJason Gunthorpe <jgg@mellanox.com>
Thu, 31 Jan 2019 04:20:23 +0000 (21:20 -0700)
commit5e458d3f899ef6158d59b6909b8df9348868ccc4
treefee8ca690b42977f0061901e381f72b2b4d71a7c
parent0ad699c0edc97a864177679dd67f2ccd73b07cb7
RDMA/restrack: Refactor user/kernel restrack additions

Since we already know if we are user/kernel before calling restrack_add,
move type dependent code into the callers to make the flow more readable.

Signed-off-by: Leon Romanovsky <leonro@mellanox.com>
Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
drivers/infiniband/core/restrack.c