Uploaded image for project: 'Lustre'
  1. Lustre
  2. LU-17387

inode_to_wb don't held a locks

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • Critical
    • None
    • None
    • None
    • RHEL 8.4 debug kernel
    • 3
    • 9223372036854775807

    Description

      [  647.475192] Lustre: DEBUG MARKER: == sanity-flr test 38: resync ============================ 18:48:16 (1703778496)
      [  650.261548] WARNING: CPU: 7 PID: 10859 at include/linux/backing-dev.h:345 ll_writepages+0x775/0x950 [lustre]
      [  650.262747] Modules linked in: lustre(OE) ofd(OE) osp(OE) lod(OE) ost(OE) mdt(OE) mdd(OE) mgs(OE) osd_ldiskfs(OE) ldiskfs(OE) jbd2 mbcache lquota(OE) lfsck(OE) obdecho(OE) mgc(OE) mdc(OE) lov(OE) osc(OE) lmv(OE) fid(OE) fld(OE) ptlrpc(OE) obdclass(OE) ksocklnd(OE) lnet(OE) libcfs(OE) rpcsec_gss_krb5 auth_rpcgss nfsv4 dns_resolver nfs lockd grace fscache iTCO_wdt iTCO_vendor_support joydev crct10dif_pclmul crc32_pclmul ghash_clmulni_intel qxl drm_ttm_helper ttm pcspkr drm_kms_helper syscopyarea sysfillrect i6300esb virtio_balloon sysimgblt fb_sys_fops drm lpc_ich i2c_i801 sunrpc vfat fat ip_tables xfs libcrc32c ahci libahci virtio_console crc32c_intel virtio_scsi e1000 virtio_blk libata serio_raw
      [  650.269962] CPU: 7 PID: 10859 Comm: lt-lfs Tainted: G        W  OE    ---------r-  - 4.18.0-305.25.1.el8_4.x86_64+debug #1
      [  650.271207] Hardware name: Red Hat KVM/RHEL-AV, BIOS 1.16.0-4.module_el8.9.0+3659+9c8643f3 04/01/2014
      [  650.272274] RIP: 0010:ll_writepages+0x775/0x950 [lustre]
      [  650.272900] Code: ea 83 e2 07 38 d0 0f 8f 91 fe ff ff 84 c0 0f 84 89 fe ff ff 4c 89 ef e8 39 27 d7 c9 44 8b 4c 24 08 4c 8b 14 24 e9 73 fe ff ff <0f> 0b 48 b8 00 00 00 00 00 fc ff df 4c 89 ea 48 c1 ea 03 0f b6 04
      [  650.274976] RSP: 0018:ffff8881fe8c7c60 EFLAGS: 00010246
      [  650.275572] RAX: 0000000000000000 RBX: ffffffffc12fc380 RCX: 0000000000000000
      [  650.276385] RDX: 0000000000000000 RSI: 0000000000000001 RDI: 0000000000000246
      [  650.277193] RBP: ffff8881fe8c7db0 R08: ffffed104217a5c4 R09: 0000000000000000
      [  650.277991] R10: 0000000000000000 R11: ffffed104217a5c3 R12: ffff888210bd2fd0
      [  650.278793] R13: ffff8881fe8c7dd4 R14: ffff888210bd2d90 R15: ffffffffffffffff
      [  650.279600] FS:  00007fefd91c7480(0000) GS:ffff888228400000(0000) knlGS:0000000000000000
      [  650.280531] CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
      [  650.281193] CR2: 00007fefd373a000 CR3: 0000000207432004 CR4: 0000000000020ee0
      [  650.282011] Call Trace:
      [  650.282328]  do_writepages+0xd2/0x250
      [  650.282757]  ? page_writeback_cpu_online+0x10/0x10
      [  650.283321]  ? sched_clock_cpu+0x18/0x1e0
      [  650.283803]  __filemap_fdatawrite_range+0x229/0x2e0
      [  650.284373]  ? rcu_read_unlock+0x50/0x50
      [  650.284831]  ? delete_from_page_cache_batch+0xaf0/0xaf0
      [  650.285466]  ? inode_congested+0x315/0x5c0
      [  650.285956]  generic_fadvise+0x549/0x670
      [  650.286426]  ksys_fadvise64_64+0x3c/0x80
      [  650.286884]  __x64_sys_fadvise64+0x93/0xf0
      [  650.287389]  do_syscall_64+0xa5/0x430
      [  650.287820]  entry_SYSCALL_64_after_hwframe+0x6a/0xdf
      [  650.288414] RIP: 0033:0x7fefd7a45b8e
      [  650.288829] Code: 8b 15 fe d2 2c 00 f7 d8 64 89 02 b8 ff ff ff ff eb c8 e8 85 b7 01 00 0f 1f 44 00 00 f3 0f 1e fa 41 89 ca b8 dd 00 00 00 0f 05 <89> c2 f7 da 3d 00 f0 ff ff b8 00 00 00 00 0f 47 c2 c3 41 57 41 56
      [  650.290906] RSP: 002b:00007ffe88b21678 EFLAGS: 00000206 ORIG_RAX: 00000000000000dd
      [  650.291768] RAX: ffffffffffffffda RBX: 0000000001baea40 RCX: 00007fefd7a45b8e
      [  650.292588] RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000000003
      [  650.293409] RBP: 0000000000000000 R08: 00007ffe88b60090 R09: 000000000007ba44
      [  650.294224] R10: 0000000000000004 R11: 0000000000000206 R12: 0000000000000000
      [  650.295046] R13: 0000000000000000 R14: 0000000000000000 R15: 00007ffe88b21730
      [  650.295899] irq event stamp: 35898
      [  650.296321] hardirqs last  enabled at (35897): [<ffffffff8d03a227>] ktime_get_coarse_real_ts64+0x127/0x1b0
      [  650.297439] hardirqs last disabled at (35898): [<ffffffff8cc0638a>] trace_hardirqs_off_thunk+0x1a/0x20
      [  650.298633] softirqs last  enabled at (35534): [<ffffffff8f0006a8>] __do_softirq+0x6a8/0xa4f
      [  650.299606] softirqs last disabled at (35527): [<ffffffff8ce2806c>] irq_exit+0x20c/0x270
      [  650.300522] ---[ end trace f6b2871834a024d7 ]---
      
      4
      339 static inline struct bdi_writeback *inode_to_wb(const struct inode *inode)
      340 {
      341 #ifdef CONFIG_LOCKDEP
      342         WARN_ON_ONCE(debug_locks &&
      343                      (!lockdep_is_held(&inode->i_lock) &&
      344                       !lockdep_is_held(&inode->i_mapping->i_pages.xa_lock) &&
      345                       !lockdep_is_held(&inode->i_wb->list_lock)));
      346 #endif
      347         return inode->i_wb;
      348 }
      

      Attachments

        Activity

          People

            wc-triage WC Triage
            shadow Alexey Lyashkov
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated: