Hello,

Damien Zammit, le jeu. 22 févr. 2024 08:24:25 +0000, a ecrit:
> +     /*
> +      *      Must be called with map lock taken unless refcount is zero
> +      */
> +     assert((map->ref_count > 0 && map->lock.want_write) || (map->ref_count 
> == 0));

Please rather use have_write_lock().

(want_write is not enough btw, want_upgrade also means we have a write
lock).

Samuel

Reply via email to