On Fri, Dec 06, 2019 at 12:27:39PM +0000, fdmanana@xxxxxxxxxx wrote: > From: Filipe Manana <fdmanana@xxxxxxxx> > > When a tree mod log user no longer needs to use the tree it calls > btrfs_put_tree_mod_seq() to remove itself from the list of users and > delete all no longer used elements of the tree's red black tree, which > should be all elements with a sequence number less then our equals to > the caller's sequence number. However the logic is broken because it > can delete and free elements from the red black tree that have a > sequence number greater then the caller's sequence number: Added to misc-next, thanks.
