]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit8086c42f3f1309d225b2d450dff8c1186cc01429
tree6807a6e091f07f3acbb310b3619d0107d9d097b4
parente06d7a264b098bddd708ff54026d1c0b83698a38
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