From: Qu Wenruo <quwenruo.btrfs@gmx.com>
To: dsterba@suse.cz, Qu Wenruo <wqu@suse.com>, linux-btrfs@vger.kernel.org
Subject: Re: [PATCH] btrfs: qgroup: add sysfs interface for debug
Date: Fri, 26 Jun 2020 19:43:09 +0800 [thread overview]
Message-ID: <8fe83372-b078-9c21-a66d-42fa14512e2a@gmx.com> (raw)
In-Reply-To: <20200626114008.GD27795@twin.jikos.cz>
[-- Attachment #1.1: Type: text/plain, Size: 1477 bytes --]
On 2020/6/26 下午7:40, David Sterba wrote:
> On Fri, Jun 26, 2020 at 07:09:41PM +0800, Qu Wenruo wrote:
>>> [ 26.508136] BTRFS: selftest: running qgroup tests
>>> [ 26.509820] BTRFS: selftest: running qgroup add/remove tests
>>> [ 26.511566] BUG: sleeping function called from invalid context at mm/slab.h:567
>>> [ 26.514058] in_atomic(): 1, irqs_disabled(): 0, non_block: 0, pid: 117, name: modprobe
>>> [ 26.516671] 2 locks held by modprobe/117:
>>> [ 26.517980] #0: ffff968162761a08 (&fs_info->qgroup_ioctl_lock){+.+.}-{3:3}, at: btrfs_create_qgroup+0x29/0xf0 [btrfs]
>>> [ 26.521114] #1: ffff968162761960 (&fs_info->qgroup_lock){+.+.}-{2:2}, at: btrfs_create_qgroup+0x75/0xf0 [btrfs]
>>> [ 26.524120] CPU: 1 PID: 117 Comm: modprobe Not tainted 5.8.0-rc2-default+ #1154
>>> [ 26.526439] Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS rel-1.12.0-59-gc9ba527-rebuilt.opensuse.org 04/01/2014
>>> [ 26.529612] Call Trace:
>>> [ 26.530731] dump_stack+0x78/0xa0
>>> [ 26.531983] ___might_sleep.cold+0xa6/0xf9
>>> [ 26.533290] ? kobject_set_name_vargs+0x1e/0x90
>>> [ 26.534674] __kmalloc_track_caller+0x143/0x340
>>> [ 26.536122] kvasprintf+0x64/0xc0
>>
>> But according to the call trace, it's indeed allocating the memory.
>>
>> And my test machine has lockdep enabled, not sure why this is not working.
>
> CONFIG_DEBUG_ATOMIC_SLEEP
>
Oh... You're right, that got disabled...
Thanks,
Qu
[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 488 bytes --]
next prev parent reply other threads:[~2020-06-26 11:43 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-06-19 1:59 [PATCH] btrfs: qgroup: add sysfs interface for debug Qu Wenruo
2020-06-19 7:24 ` Qu Wenruo
2020-06-19 9:39 ` David Sterba
2020-06-19 9:52 ` Qu Wenruo
2020-06-25 20:21 ` David Sterba
2020-06-25 23:21 ` Qu Wenruo
2020-06-26 11:14 ` David Sterba
2020-06-26 10:46 ` David Sterba
2020-06-26 11:09 ` Qu Wenruo
2020-06-26 11:40 ` David Sterba
2020-06-26 11:43 ` Qu Wenruo [this message]
2020-06-26 11:40 ` Qu Wenruo
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=8fe83372-b078-9c21-a66d-42fa14512e2a@gmx.com \
--to=quwenruo.btrfs@gmx.com \
--cc=dsterba@suse.cz \
--cc=linux-btrfs@vger.kernel.org \
--cc=wqu@suse.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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.