Re: [PATCH 06/10] IB/uverbs: Add a simple allocator to uverbs_attr_bundle

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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


[Index of Archives]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Photo]     [Yosemite News]     [Yosemite Photos]     [Linux Kernel]     [Linux SCSI]     [XFree86]

  Powered by Linux