diff options
author | Leon Romanovsky <leonro@mellanox.com> | 2020-07-19 08:22:23 +0300 |
---|---|---|
committer | Jason Gunthorpe <jgg@nvidia.com> | 2020-07-24 16:22:30 -0300 |
commit | 16e51f78a9db3645d2d2dd7c0a78e7e7776b630e (patch) | |
tree | 2354b8de3c56f8528df67b7960038bfaa45ff488 /samples | |
parent | 0f63ef1dd581de1655075e2dbdf2ef302514a983 (diff) |
RDMA/core: Update write interface to use automatic object lifetime
The automatic object lifetime model allows us to change the write()
interface to have the same logic as the ioctl() path. Update the
create/alloc functions to be in the following format, so the code flow
will be the same:
* Allocate objects
* Initialize them
* Call to the drivers, this is last step that is allowed to fail
* Finalize object
* Return response and allow to core code to handle abort/commit
respectively.
Link: https://lore.kernel.org/r/20200719052223.75245-3-leon@kernel.org
Signed-off-by: Leon Romanovsky <leonro@mellanox.com>
Signed-off-by: Jason Gunthorpe <jgg@nvidia.com>
Diffstat (limited to 'samples')
0 files changed, 0 insertions, 0 deletions