On Sep 4, 2019, at 4:23 PM, Saeed Mahameed <sae...@mellanox.com> wrote:

some allocations require parameters that should remain valid and
constant across the whole reconfiguration procedure such
params.num_channels, so they must be done inside the lock.

You could always check if those parameters have changed once under the lock and, if they did, drop the lock, reallocate and try again. Since such changes should be very infrequent, this is something that really should not loop multiple times.

--
Mark Rustad, Networking Division, Intel Corporation

Attachment: signature.asc
Description: Message signed with OpenPGP

Reply via email to