]> git.openfabrics.org - ~shefty/librdmacm.git/commit
librdmacm: Only allocate verbs resources when needed
authorSean Hefty <sean.hefty@intel.com>
Thu, 19 Jul 2012 17:09:48 +0000 (10:09 -0700)
committerSean Hefty <sean.hefty@intel.com>
Thu, 19 Jul 2012 17:14:27 +0000 (10:14 -0700)
commita13fd8c5744c3f8eb80150654e2c34e50a5f04aa
tree31c0cf47f562afc290796ba3e9791f672a7d5d8b
parent63a728f303f78348ad9727c46ac3e271197dace4
librdmacm: Only allocate verbs resources when needed

The librdmacm allocates a PD per device on initialization.  Although
we need to maintain the device list while the library is loaded
(see rdma_get_devices), we can reduce the overhead by only allocating
verbs resources when they are needed.

This allows the rsocket preload library to support fork for
applications that spawn connections off to child processes.

Signed-off-by: Sean Hefty <sean.hefty@intel.com>
src/cma.c