OSDN Git Service

IB/uverbs: Refactor uverbs_finalize_objects
authorMatan Barak <matanb@mellanox.com>
Sun, 17 Jun 2018 09:59:51 +0000 (12:59 +0300)
committerJason Gunthorpe <jgg@mellanox.com>
Tue, 19 Jun 2018 16:53:02 +0000 (10:53 -0600)
commit9442d8bf1d63e09780dc3b60ac6cdfa0813a98c2
treec972e89fa2b4146b19555d83b20338dbc49482b5
parent1114b0a8a83dfc82464fd1d8a34313044381cf5e
IB/uverbs: Refactor uverbs_finalize_objects

uverbs_finalize_objects is currently used only to commit or abort
objects. Since we want to add automatic allocation/free of PTR_IN
attributes, moving it to uverbs_ioctl.c and renamit it to
uverbs_finalize_attrs.

Signed-off-by: Matan Barak <matanb@mellanox.com>
Signed-off-by: Leon Romanovsky <leonro@mellanox.com>
Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
drivers/infiniband/core/rdma_core.c
drivers/infiniband/core/rdma_core.h
drivers/infiniband/core/uverbs_ioctl.c