* kdave/for-next commit 26112f7f472
@ 2016-07-08 4:24 Jeff Mahoney
2016-07-08 11:19 ` Holger Hoffstätte
0 siblings, 1 reply; 5+ messages in thread
From: Jeff Mahoney @ 2016-07-08 4:24 UTC (permalink / raw)
To: David Sterba, Josef Bacik; +Cc: linux-btrfs
[-- Attachment #1.1: Type: text/plain, Size: 674 bytes --]
Hi Dave -
This commit introduces a bug. I ran across it when running xfstests
against my own integrated branch.
The problem is that btrfs_calc_reclaim_metadata_size didn't used to be
called from recovery, so it was safe to use fs_info->fs_root. With
commit 7c83c6a09 (Btrfs: don't bother kicking async if there's nothing
to reclaim) we do call it from recovery context and fs_info->fs_root is
NULL.
The fix is to just not switch btrfs_calc_reclaim_metadata_size to take
an fs_info. All the other call sites were using fs_info->fs_root
anyway, so it's not like we're pinning a root somewhere just for this call.
-Jeff
--
Jeff Mahoney
SUSE Labs
[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 881 bytes --]
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: kdave/for-next commit 26112f7f472
2016-07-08 4:24 kdave/for-next commit 26112f7f472 Jeff Mahoney
@ 2016-07-08 11:19 ` Holger Hoffstätte
2016-07-08 11:55 ` Jeff Mahoney
0 siblings, 1 reply; 5+ messages in thread
From: Holger Hoffstätte @ 2016-07-08 11:19 UTC (permalink / raw)
To: Jeff Mahoney, David Sterba, Josef Bacik; +Cc: linux-btrfs
[-- Attachment #1.1: Type: text/plain, Size: 934 bytes --]
On 07/08/16 06:24, Jeff Mahoney wrote:
> Hi Dave -
>
> This commit introduces a bug. I ran across it when running xfstests
> against my own integrated branch.
I can't find that commit id anywhere...?
> The problem is that btrfs_calc_reclaim_metadata_size didn't used to be
> called from recovery, so it was safe to use fs_info->fs_root. With
> commit 7c83c6a09 (Btrfs: don't bother kicking async if there's nothing
> to reclaim) we do call it from recovery context and fs_info->fs_root is
> NULL.
>
> The fix is to just not switch btrfs_calc_reclaim_metadata_size to take
> an fs_info. All the other call sites were using fs_info->fs_root
> anyway, so it's not like we're pinning a root somewhere just for this call.
I've had this patch from last October in my 4.4.x tree forever:
http://www.spinics.net/lists/linux-btrfs/msg48457.html
Apparently it fell off the table. Shouldn't that fix it?
-h
[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 226 bytes --]
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: kdave/for-next commit 26112f7f472
2016-07-08 11:19 ` Holger Hoffstätte
@ 2016-07-08 11:55 ` Jeff Mahoney
2016-07-08 12:31 ` Holger Hoffstätte
2016-07-08 13:37 ` David Sterba
0 siblings, 2 replies; 5+ messages in thread
From: Jeff Mahoney @ 2016-07-08 11:55 UTC (permalink / raw)
To: Holger Hoffstätte, David Sterba, Josef Bacik; +Cc: linux-btrfs
[-- Attachment #1.1: Type: text/plain, Size: 1254 bytes --]
On 7/8/16 7:19 AM, Holger Hoffstätte wrote:
> On 07/08/16 06:24, Jeff Mahoney wrote:
>> Hi Dave -
>>
>> This commit introduces a bug. I ran across it when running xfstests
>> against my own integrated branch.
>
> I can't find that commit id anywhere...?
Hi Holger -
This is the for-next branch. It's not in any mainline branch yet.
>> The problem is that btrfs_calc_reclaim_metadata_size didn't used to be
>> called from recovery, so it was safe to use fs_info->fs_root. With
>> commit 7c83c6a09 (Btrfs: don't bother kicking async if there's nothing
>> to reclaim) we do call it from recovery context and fs_info->fs_root is
>> NULL.
>>
>> The fix is to just not switch btrfs_calc_reclaim_metadata_size to take
>> an fs_info. All the other call sites were using fs_info->fs_root
>> anyway, so it's not like we're pinning a root somewhere just for this call.
>
> I've had this patch from last October in my 4.4.x tree forever:
> http://www.spinics.net/lists/linux-btrfs/msg48457.html
>
> Apparently it fell off the table. Shouldn't that fix it?
A different fix went into for-next. That's where the conflict is. The
merged version of my root->fs_info patch reverts it.
-Jeff
--
Jeff Mahoney
SUSE Labs
[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 881 bytes --]
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: kdave/for-next commit 26112f7f472
2016-07-08 11:55 ` Jeff Mahoney
@ 2016-07-08 12:31 ` Holger Hoffstätte
2016-07-08 13:37 ` David Sterba
1 sibling, 0 replies; 5+ messages in thread
From: Holger Hoffstätte @ 2016-07-08 12:31 UTC (permalink / raw)
To: linux-btrfs
[-- Attachment #1.1: Type: text/plain, Size: 558 bytes --]
On 07/08/16 13:55, Jeff Mahoney wrote:
> On 7/8/16 7:19 AM, Holger Hoffstätte wrote:
>> On 07/08/16 06:24, Jeff Mahoney wrote:
>>> Hi Dave -
>>>
>>> This commit introduces a bug. I ran across it when running xfstests
>>> against my own integrated branch.
>>
>> I can't find that commit id anywhere...?
>
> Hi Holger -
>
> This is the for-next branch. It's not in any mainline branch yet.
Yes, I understand that. I searched in the github/kdave tree, which only
has the for-next-xyz branches. Found it in the one on kernel.org.
-h
[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 226 bytes --]
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: kdave/for-next commit 26112f7f472
2016-07-08 11:55 ` Jeff Mahoney
2016-07-08 12:31 ` Holger Hoffstätte
@ 2016-07-08 13:37 ` David Sterba
1 sibling, 0 replies; 5+ messages in thread
From: David Sterba @ 2016-07-08 13:37 UTC (permalink / raw)
To: Jeff Mahoney
Cc: Holger Hoffstätte, David Sterba, Josef Bacik, linux-btrfs
On Fri, Jul 08, 2016 at 07:55:47AM -0400, Jeff Mahoney wrote:
> >> The problem is that btrfs_calc_reclaim_metadata_size didn't used to be
> >> called from recovery, so it was safe to use fs_info->fs_root. With
> >> commit 7c83c6a09 (Btrfs: don't bother kicking async if there's nothing
> >> to reclaim) we do call it from recovery context and fs_info->fs_root is
> >> NULL.
> >>
> >> The fix is to just not switch btrfs_calc_reclaim_metadata_size to take
> >> an fs_info. All the other call sites were using fs_info->fs_root
> >> anyway, so it's not like we're pinning a root somewhere just for this call.
> >
> > I've had this patch from last October in my 4.4.x tree forever:
> > http://www.spinics.net/lists/linux-btrfs/msg48457.html
> >
> > Apparently it fell off the table. Shouldn't that fix it?
>
> A different fix went into for-next.
Which JFI is https://patchwork.kernel.org/patch/8928981/ so the fix from
Tsutomu Itoh is not relevant anymore (but yeah it was lost in the
noise).
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2016-07-08 13:37 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-07-08 4:24 kdave/for-next commit 26112f7f472 Jeff Mahoney
2016-07-08 11:19 ` Holger Hoffstätte
2016-07-08 11:55 ` Jeff Mahoney
2016-07-08 12:31 ` Holger Hoffstätte
2016-07-08 13:37 ` David Sterba
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.