On Fri, Aug 03, 2018 at 01:31:39PM -0600, Jason Gunthorpe wrote: > From: Jason Gunthorpe <jgg@xxxxxxxxxxxx> > > This is similar in spirit to devm, it keeps track of any allocations > linked to this method call and ensures they are all freed when the method > exits. Further, if there is space in the internal/onstack buffer then the > allocator will hand out that memory and avoid an expensive call to > kalloc/kfree in the syscall path. > > Signed-off-by: Jason Gunthorpe <jgg@xxxxxxxxxxxx> > --- > drivers/infiniband/core/uverbs_ioctl.c | 106 ++++++++++++++++++++----- > include/rdma/uverbs_ioctl.h | 24 ++++++ > 2 files changed, 110 insertions(+), 20 deletions(-) > Thanks, Reviewed-by: Leon Romanovsky <leonro@xxxxxxxxxxxx>
Attachment:
signature.asc
Description: PGP signature