On Fri,  1 Jul 2022 02:02:31 -0700
lon...@linuxonhyperv.com wrote:

> +     uint64_t max_mr_size;
> +     rte_rwlock_t    mr_list_lock;
> +};

Reader/Writer locks are slower for the usual uncontended case.
Unless you have a reader holding onto the lock for a long time,
better to use spin lock.

This is Linux wisdom (thank you paulmck), Windows seems to love
reader/writer locks.

Reply via email to