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

BUG: sleeping function called from invalid context at kernel/locking/spinlock_rt.c:35

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • Minor
    • None
    • None
    • None
    • 3
    • 9223372036854775807

    Description

      In my local environment:

      [root@centos82 lustre-wc-2]# cat createobj.sh 
      #!/bin/bash
      for (( a = 1; a < 100; a++ )) do
       dd if=/dev/urandom of=/mnt/lustre/$a bs=4096 count=1000
      done
       

      gives a lot of such messages in dmesg:

      [ 1056.906584] CPU: 4 PID: 10370 Comm: ldlm_bl_04 Tainted: G        W  OE    --------- -  - 4.18.0-372.9.1.rt7.166.el8.x86_64+debug #1
      [ 1056.906618] Hardware name: innotek GmbH VirtualBox/VirtualBox, BIOS VirtualBox 12/01/2006
      [ 1056.906619] Call Trace:
      [ 1056.906623]  dump_stack+0x5c/0x80
      [ 1056.906629]  ___might_sleep.cold.96+0xf5/0x109
      [ 1056.906634]  rt_spin_lock+0x3d/0xd0
      [ 1056.906638]  ? cfs_trace_lock_tcd+0x23/0x80 [libcfs]
      [ 1056.906652]  cfs_trace_lock_tcd+0x23/0x80 [libcfs]
      [ 1056.906665]  libcfs_debug_msg+0x127/0xc90 [libcfs]
      [ 1056.906678]  ? lock_acquire+0x14f/0x470
      [ 1056.906682]  ? __switch_to_asm+0x35/0x70
      [ 1056.906684]  ? lock_acquire+0x14f/0x470
      [ 1056.906688]  ? lock_release+0x1ca/0x450
      [ 1056.906691]  ? _raw_spin_unlock_irqrestore+0x3c/0x80
      [ 1056.906695]  ? rt_mutex_slowunlock+0x22e/0x2f0
      [ 1056.906699]  ? ldlm_bl_get_work+0x21d/0x2e0 [ptlrpc]
      [ 1056.906813]  ldlm_bl_get_work+0x21d/0x2e0 [ptlrpc]
      [ 1056.906916]  ldlm_bl_thread_main+0x563/0x960 [ptlrpc]
      [ 1056.907023]  ? finish_wait+0x80/0x80
      [ 1056.907026]  ? ldlm_handle_bl_callback+0x3f0/0x3f0 [ptlrpc]
      [ 1056.907149]  kthread+0x165/0x180
      [ 1056.907153]  ? set_kthread_struct+0x40/0x40
      [ 1056.907157]  ret_from_fork+0x3a/0x50
      [ 1057.930481] BUG: sleeping function called from invalid context at kernel/locking/spinlock_rt.c:35
      [ 1057.930484] in_atomic(): 1, irqs_disabled(): 0, non_block: 0, pid: 9205, name: ldlm_bl_01
      [ 1057.930486] INFO: lockdep is turned off.
      [ 1057.930487] Preemption disabled at:
      [ 1057.930488] [<ffffffffc08067f5>] libcfs_debug_msg+0xf5/0xc90 [libcfs] 

      Attachments

        Activity

          People

            ablagodarenko Artem Blagodarenko
            ablagodarenko Artem Blagodarenko
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: