RDMA/core: Align abort/commit object scheme for write() and ioctl() paths
authorLeon Romanovsky <leonro@mellanox.com>
Sun, 19 Jul 2020 05:22:22 +0000 (08:22 +0300)
committerJason Gunthorpe <jgg@nvidia.com>
Fri, 24 Jul 2020 18:57:22 +0000 (15:57 -0300)
commit0f63ef1dd581de1655075e2dbdf2ef302514a983
tree6807a6e091f07f3acbb310b3619d0107d9d097b4
parentc94e272b57abb0cade9addcafc93ac1f566305cf
RDMA/core: Align abort/commit object scheme for write() and ioctl() paths

Create the same logic flow for the write() interface as we have for the
ioctl() path by making sure that the object is committed or aborted
automatically after HW object creation.

Link: https://lore.kernel.org/r/20200719052223.75245-2-leon@kernel.org
Signed-off-by: Leon Romanovsky <leonro@mellanox.com>
Signed-off-by: Jason Gunthorpe <jgg@nvidia.com>
drivers/infiniband/core/uverbs_main.c
drivers/infiniband/core/uverbs_std_types_device.c
include/rdma/uverbs_ioctl.h
include/rdma/uverbs_std_types.h