commit | 32ed5c00ac5fdea49058fd49bf8707e101dc3dfe | [log] [tgz] |
---|---|---|
author | Jason Gunthorpe <jgg@mellanox.com> | Wed Jul 25 21:40:11 2018 -0600 |
committer | Jason Gunthorpe <jgg@mellanox.com> | Wed Aug 01 14:55:48 2018 -0600 |
tree | e8e6c3e38713d9693556786ac56bff9bcc20ebea | |
parent | aa72c9a5f986444f5e245767402ed1f3066fca2c [diff] |
IB/uverbs: Make the write path destroy methods use the same flow as ioctl The ridiculous dance with uobj_remove_commit() is not needed, the write path can follow the same flow as ioctl - lock and destroy the HW object then use the data left over in the uobject to form the response to userspace. Two helpers are introduced to make this flow straightforward for the caller. Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>