]> www.infradead.org Git - users/jedix/linux-maple.git/commit
ib_uverbs: Allocate pd in a lazy manner to conserve resources
authorMukesh Kacker <mukesh.kacker@oracle.com>
Wed, 23 Dec 2015 03:49:49 +0000 (19:49 -0800)
committerChuck Anderson <chuck.anderson@oracle.com>
Tue, 7 Feb 2017 03:33:00 +0000 (19:33 -0800)
commitaa0401aeaa3e5d859bbd15b0c5c325b5ace725c9
tree608e9da261a5632cd1623f08cbad00e124ba9633
parent73721e1e60bf1c65beeec47647a8d96815addbf8
ib_uverbs: Allocate pd in a lazy manner to conserve resources

For usnic devices devices where the maximum number of pd
resources are limited (usnic devices), its a waste to
allocate this resource on device initialization.

We delay the allocation to first use.

Orabug: 22378991

Signed-off-by: Mukesh Kacker <mukesh.kacker@oracle.com>
Reviewed-by: Santosh Shilimkar <santosh.shilimkar@oracle.com>
drivers/infiniband/core/uverbs_cmd.c
drivers/infiniband/core/uverbs_main.c