Messages in this thread | | | Subject | Re: Linux 5.6-rc2 | From | Filipe Manana <> | Date | Mon, 17 Feb 2020 16:04:53 +0000 |
| |
On 17/02/20 05:08, Linus Torvalds wrote: > On Sun, Feb 16, 2020 at 7:02 PM Josef Bacik <josef@toxicpanda.com> wrote: >> >> I assume Filipe wrote this based on my patch here >> >> https://git.kernel.org/pub/scm/linux/kernel/git/josef/btrfs-next.git/commit/?id=c821555d2b9733d8f483c9e79481c7209e1c1fb0 >> >> which makes it so we can allocate safely in this context, but that patch hasn't >> made it's way to you yet. Do you want it now? It was prep for a much less safe >> patchset, but is fine by itself. Thanks, > > I assume it's either that, or revert 28553fa992cb and do it differently.. > > I'll leave that whole decision to the btrfs people who actually know > the code and the situations and what the alternative would look > like...
So what happened was that the patch was developed against the integration branch, where we don't use search paths in spinning mode anymore - this was done by Josef's patch, which itself is not a bug fix but it's necessary for another bug fix that is only on the integration branch.
On 5.6-rcX and any other other older kernels we have the search using spinning locks, that's why we run into this problem.
The solution can be either adding Josef's patch or changing the order in which my patch unlocks the file range - to do it after the patch is freed (which releases any spin locks it might be holding).
I've just sent a patch for that: https://patchwork.kernel.org/patch/11386723/
I'm fine with either solution.
Thanks.
> > Linus >
| |