On Sat, Aug 16, 2025 at 12:36:45AM +0100, Al Viro wrote: > We only need it when mount in question was sending events downstream (then > recepients need to switch to new master) or the mount is being turned into > slave (then we need a new master for it). > > That wouldn't be a big deal, except that it causes quite a bit of work > when umount_tree() is taking a large peer group out. Adding a trivial > "don't bother calling propagation_source() unless we are going to use > its results" logics improves the things quite a bit. > > We are still doing unnecessary work on bulk removals from propagation graph, > but the full solution for that will have to wait for the next merge window. > > Fixes: 955336e204ab "do_make_slave(): choose new master sanely" > Signed-off-by: Al Viro <viro@xxxxxxxxxxxxxxxxxx> > --- Reviewed-by: Christian Brauner <brauner@xxxxxxxxxx>