Quoting r. Gleb Natapov <[EMAIL PROTECTED]>:
> @@ -187,8 +194,8 @@ int ibv_lock_range(void *base, size_t si
>
>
> if (node->refcnt++ == 0) {
> - ret = mlock((void *) node->start,
> - node->end - node->start + 1);
> + ret = madvise((void *) node->start,
> + node->end - node->start + 1, MADV_DONTFORK);
> if (ret)
> goto out;
> }
Will this break libibverbs on older kernels that don't have madvise?
Maybe test MADV_DONTFORK during library startup and set a flag?
--
MST
_______________________________________________
openib-general mailing list
[email protected]
http://openib.org/mailman/listinfo/openib-general
To unsubscribe, please visit http://openib.org/mailman/listinfo/openib-general