aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/firewire
diff options
context:
space:
mode:
authorJason Gunthorpe <jgg@mellanox.com>2018-08-09 20:14:40 -0600
committerJason Gunthorpe <jgg@mellanox.com>2018-08-13 09:16:08 -0600
commit461bb2eee4e162617e790c74d9b4ab10056cad7f (patch)
treec941a0792c773c51ef23aa2aa2dc6a9e4d6999ea /drivers/firewire
parentIB/uverbs: Remove the ib_uverbs_attr pointer from each attr (diff)
downloadlinux-dev-461bb2eee4e162617e790c74d9b4ab10056cad7f.tar.xz
linux-dev-461bb2eee4e162617e790c74d9b4ab10056cad7f.zip
IB/uverbs: Add a simple allocator to uverbs_attr_bundle
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@mellanox.com> Reviewed-by: Leon Romanovsky <leonro@mellanox.com>
Diffstat (limited to 'drivers/firewire')
0 files changed, 0 insertions, 0 deletions