Re: [RFC PATCH 1/2] maple_tree: add __mtree_insert_range function
From: Boqun Feng
Date: Sat Apr 05 2025 - 14:38:34 EST
On Sat, Apr 05, 2025 at 04:22:34PM +0100, Matthew Wilcox wrote:
> On Sat, Apr 05, 2025 at 01:01:53AM -0500, Andrew Ballance wrote:
> > adds the __mtree_insert_range which is identical to mtree_insert_range
> > but does not aquire ma_lock.
> > This function is needed for the rust bindings for maple trees because
> > the locking is handled on the rust side.
>
> No.
>
> The support for external locking is a TEMPORARY HACK. I've talked
> before about why this is and don't feel like explaining it again.
Does it mean that ideally maple trees should not support external
locking, i.e. it should use its own locking?
(BTw, people usually add some documentation if they don't want to repeat
themselves ;-))
Regards,
Boqun