public inbox for linux-btrfs@vger.kernel.org
 help / color / mirror / Atom feed
* 'umount /mnt/scratch' of xfstests generic/475 freeze
@ 2021-05-01  2:07 Wang Yugui
  2021-05-02 12:32 ` Wang Yugui
  0 siblings, 1 reply; 2+ messages in thread
From: Wang Yugui @ 2021-05-01  2:07 UTC (permalink / raw)
  To: linux-btrfs

Hi,

'umount /mnt/scratch' of xfstests generic/475 freeze, the OS still
reponse.

the frequency is yet not clear, but not high.

By the way, We enable '-O no-holes -R free-space-tree' default for
mkfs.btrfs.

This is the dmesg output:

[ 4674.419567] ------------[ cut here ]------------
[ 4674.425349] WARNING: CPU: 11 PID: 2022633 at fs/btrfs/extent_io.c:6409 extent_buffer_test_bit+0x44/0x70 [btrfs]
[ 4674.437254] Modules linked in: dm_thin_pool dm_persistent_data dm_bio_prison dm_flakey loop rpcsec_gss_krb5 nfsv4 dns_resolver nfs fscache rfkill rpcrdma ib_isert iscsi_target_mod ib_iser libiscsi scsi_transport_iscsi ib_srpt target_core_mod ib_srp scsi_transport_srp ib_ipoib rdma_ucm ib_umad iTCO_wdt intel_pmc_bxt intel_rapl_msr iTCO_vendor_support dcdbas intel_rapl_common sb_edac x86_pkg_temp_thermal intel_powerclamp coretemp kvm_intel ipmi_ssif kvm irqbypass rapl intel_cstate ipmi_si intel_uncore mei_me ipmi_devintf joydev mei lpc_ich ipmi_msghandler acpi_power_meter nvme_rdma nvme_fabrics rdma_cm iw_cm ib_cm rdmavt rdma_rxe nfsd ib_uverbs ip6_udp_tunnel udp_tunnel ib_core auth_rpcgss nfs_acl lockd grace nfs_ssc ip_tables xfs mgag200 drm_kms_helper crct10dif_pclmul crc32_pclmul cec crc32c_intel bnx2x nvme drm mpt3sas igb pcspkr ghash_clmulni_intel mdio megaraid_sas nvme_core dca raid_class i2c_algo_bit scsi_transport_sas wmi dm_multipath scsi_dh_rdac scsi_dh_emc scsi_dh_alua bt
 rfs xor
[ 4674.437303]  raid6_pq sunrpc i2c_dev [last unloaded: scsi_debug]
[ 4674.547845] CPU: 11 PID: 2022633 Comm: kworker/u96:7 Tainted: G        W         5.10.33-4.el7.x86_64 #1
[ 4674.559153] Hardware name: Dell Inc. PowerEdge T620/02CD1V, BIOS 2.9.0 12/06/2019
[ 4674.568280] Workqueue: btrfs-cache btrfs_work_helper [btrfs]
[ 4674.575343] RIP: 0010:extent_buffer_test_bit+0x44/0x70 [btrfs]
[ 4674.582554] Code: 49 89 f0 48 c1 ee 0c 48 8b 44 f7 70 41 81 e0 ff 0f 00 00 48 8b 70 08 48 8d 4e ff 83 e6 01 48 0f 44 c8 48 8b 09 83 e1 04 75 29 <0f> 0b 48 2b 05 e3 07 f2 d0 83 e2 07 48 c1 f8 06 89 d1 48 c1 e0 0c
[ 4674.604916] RSP: 0018:ffffa247a4c1fca8 EFLAGS: 00010246
[ 4674.611431] RAX: ffffea7584253b80 RBX: 0000000043e0b000 RCX: 0000000000000000
[ 4674.620097] RDX: 000000000000010b RSI: 0000000000000000 RDI: ffff8e920775a800
[ 4674.628785] RBP: ffff8e920775a800 R08: 0000000000000779 R09: ffff8e92522585a0
[ 4674.637387] R10: 0000000000000097 R11: 0000043e98db99be R12: 0000000043d00000
[ 4674.646031] R13: ffff8e9578e79400 R14: ffff8e9369847350 R15: ffff8e9369847310
[ 4674.654688] FS:  0000000000000000(0000) GS:ffff8ea1bf940000(0000) knlGS:0000000000000000
[ 4674.664371] CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
[ 4674.671463] CR2: 00005642b0efa208 CR3: 00000013f1a10003 CR4: 00000000001706e0
[ 4674.680080] Call Trace:
[ 4674.683526]  free_space_test_bit.isra.11+0xac/0xf0 [btrfs]
[ 4674.690325]  load_free_space_tree+0x1f7/0x3f0 [btrfs]
[ 4674.696671]  caching_thread+0x374/0x500 [btrfs]
[ 4674.702352]  ? newidle_balance+0x265/0x3e0
[ 4674.707622]  btrfs_work_helper+0xc2/0x300 [btrfs]
[ 4674.713487]  process_one_work+0x1aa/0x340
[ 4674.718591]  worker_thread+0x30/0x390
[ 4674.723301]  ? create_worker+0x1a0/0x1a0
[ 4674.728313]  kthread+0x116/0x130
[ 4674.732549]  ? kthread_park+0x80/0x80
[ 4674.737237]  ret_from_fork+0x1f/0x30
[ 4674.741855] ---[ end trace 037def07c1124c76 ]---
[ 4674.747602] ------------[ cut here ]------------


fs/btrfs/extent_io.c:6409
int extent_buffer_test_bit(const struct extent_buffer *eb, unsigned long start,
               unsigned long nr)
{
    u8 *kaddr;
    struct page *page;
    unsigned long i;
    size_t offset;

    eb_bitmap_offset(eb, start, nr, &i, &offset);
    page = eb->pages[i];
L6409:    WARN_ON(!PageUptodate(page));
    kaddr = page_address(page);
    return 1U & (kaddr[offset] >> (nr & (BITS_PER_BYTE - 1)));
}

Best Regards
Wang Yugui (wangyugui@e16-tech.com)
2021/05/01



^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: 'umount /mnt/scratch' of xfstests generic/475 freeze
  2021-05-01  2:07 'umount /mnt/scratch' of xfstests generic/475 freeze Wang Yugui
@ 2021-05-02 12:32 ` Wang Yugui
  0 siblings, 0 replies; 2+ messages in thread
From: Wang Yugui @ 2021-05-02 12:32 UTC (permalink / raw)
  To: linux-btrfs

Hi,

another 2 results of xfstests generic/475.

result 1:
although some unexpecgted dmesg output, xfstests generic/475 finished.

[12749.787049] WARNING: CPU: 14 PID: 1280811 at fs/btrfs/extent_io.c:6409 extent_buffer_test_bit+0x44/0x70 [btrfs]
...
[12750.429079] watchdog: BUG: soft lockup - CPU#19 stuck for 22s! [migration/19:110]
...
[12807.346868] clocksource: timekeeping watchdog on CPU14: Marking clocksource 'tsc' as unstable because the skew is too large:
...
[12813.812473] BTRFS: error (device dm-0) in btrfs_run_delayed_refs:2163: errno=-5 IO failure


result 2:
a panic happened, but we failed to gather the call trace.

Best Regards
Wang Yugui (wangyugui@e16-tech.com)
2021/05/02

> Hi,
> 
> 'umount /mnt/scratch' of xfstests generic/475 freeze, the OS still
> reponse.
> 
> the frequency is yet not clear, but not high.
> 
> By the way, We enable '-O no-holes -R free-space-tree' default for
> mkfs.btrfs.
> 
> This is the dmesg output:
> 
> [ 4674.419567] ------------[ cut here ]------------
> [ 4674.425349] WARNING: CPU: 11 PID: 2022633 at fs/btrfs/extent_io.c:6409 extent_buffer_test_bit+0x44/0x70 [btrfs]
> [ 4674.437254] Modules linked in: dm_thin_pool dm_persistent_data dm_bio_prison dm_flakey loop rpcsec_gss_krb5 nfsv4 dns_resolver nfs fscache rfkill rpcrdma ib_isert iscsi_target_mod ib_iser libiscsi scsi_transport_iscsi ib_srpt target_core_mod ib_srp scsi_transport_srp ib_ipoib rdma_ucm ib_umad iTCO_wdt intel_pmc_bxt intel_rapl_msr iTCO_vendor_support dcdbas intel_rapl_common sb_edac x86_pkg_temp_thermal intel_powerclamp coretemp kvm_intel ipmi_ssif kvm irqbypass rapl intel_cstate ipmi_si intel_uncore mei_me ipmi_devintf joydev mei lpc_ich ipmi_msghandler acpi_power_meter nvme_rdma nvme_fabrics rdma_cm iw_cm ib_cm rdmavt rdma_rxe nfsd ib_uverbs ip6_udp_tunnel udp_tunnel ib_core auth_rpcgss nfs_acl lockd grace nfs_ssc ip_tables xfs mgag200 drm_kms_helper crct10dif_pclmul crc32_pclmul cec crc32c_intel bnx2x nvme drm mpt3sas igb pcspkr ghash_clmulni_intel mdio megaraid_sas nvme_core dca raid_class i2c_algo_bit scsi_transport_sas wmi dm_multipath scsi_dh_rdac scsi_dh_emc scsi_dh_alua 
 btrfs xor
> [ 4674.437303]  raid6_pq sunrpc i2c_dev [last unloaded: scsi_debug]
> [ 4674.547845] CPU: 11 PID: 2022633 Comm: kworker/u96:7 Tainted: G        W         5.10.33-4.el7.x86_64 #1
> [ 4674.559153] Hardware name: Dell Inc. PowerEdge T620/02CD1V, BIOS 2.9.0 12/06/2019
> [ 4674.568280] Workqueue: btrfs-cache btrfs_work_helper [btrfs]
> [ 4674.575343] RIP: 0010:extent_buffer_test_bit+0x44/0x70 [btrfs]
> [ 4674.582554] Code: 49 89 f0 48 c1 ee 0c 48 8b 44 f7 70 41 81 e0 ff 0f 00 00 48 8b 70 08 48 8d 4e ff 83 e6 01 48 0f 44 c8 48 8b 09 83 e1 04 75 29 <0f> 0b 48 2b 05 e3 07 f2 d0 83 e2 07 48 c1 f8 06 89 d1 48 c1 e0 0c
> [ 4674.604916] RSP: 0018:ffffa247a4c1fca8 EFLAGS: 00010246
> [ 4674.611431] RAX: ffffea7584253b80 RBX: 0000000043e0b000 RCX: 0000000000000000
> [ 4674.620097] RDX: 000000000000010b RSI: 0000000000000000 RDI: ffff8e920775a800
> [ 4674.628785] RBP: ffff8e920775a800 R08: 0000000000000779 R09: ffff8e92522585a0
> [ 4674.637387] R10: 0000000000000097 R11: 0000043e98db99be R12: 0000000043d00000
> [ 4674.646031] R13: ffff8e9578e79400 R14: ffff8e9369847350 R15: ffff8e9369847310
> [ 4674.654688] FS:  0000000000000000(0000) GS:ffff8ea1bf940000(0000) knlGS:0000000000000000
> [ 4674.664371] CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
> [ 4674.671463] CR2: 00005642b0efa208 CR3: 00000013f1a10003 CR4: 00000000001706e0
> [ 4674.680080] Call Trace:
> [ 4674.683526]  free_space_test_bit.isra.11+0xac/0xf0 [btrfs]
> [ 4674.690325]  load_free_space_tree+0x1f7/0x3f0 [btrfs]
> [ 4674.696671]  caching_thread+0x374/0x500 [btrfs]
> [ 4674.702352]  ? newidle_balance+0x265/0x3e0
> [ 4674.707622]  btrfs_work_helper+0xc2/0x300 [btrfs]
> [ 4674.713487]  process_one_work+0x1aa/0x340
> [ 4674.718591]  worker_thread+0x30/0x390
> [ 4674.723301]  ? create_worker+0x1a0/0x1a0
> [ 4674.728313]  kthread+0x116/0x130
> [ 4674.732549]  ? kthread_park+0x80/0x80
> [ 4674.737237]  ret_from_fork+0x1f/0x30
> [ 4674.741855] ---[ end trace 037def07c1124c76 ]---
> [ 4674.747602] ------------[ cut here ]------------
> 
> 
> fs/btrfs/extent_io.c:6409
> int extent_buffer_test_bit(const struct extent_buffer *eb, unsigned long start,
>                unsigned long nr)
> {
>     u8 *kaddr;
>     struct page *page;
>     unsigned long i;
>     size_t offset;
> 
>     eb_bitmap_offset(eb, start, nr, &i, &offset);
>     page = eb->pages[i];
> L6409:    WARN_ON(!PageUptodate(page));
>     kaddr = page_address(page);
>     return 1U & (kaddr[offset] >> (nr & (BITS_PER_BYTE - 1)));
> }
> 
> Best Regards
> Wang Yugui (wangyugui@e16-tech.com)
> 2021/05/01
> 



^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2021-05-02 12:32 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2021-05-01  2:07 'umount /mnt/scratch' of xfstests generic/475 freeze Wang Yugui
2021-05-02 12:32 ` Wang Yugui

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox