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

sleeping while atomic in nodemap_destroy

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Major
    • Lustre 2.8.0
    • None
    • 3
    • 9223372036854775807

    Description

      nodemap_destroy seems to be using mutexes when called under spinlock/rwlock.

      Here's the relevant error message:

      [ 6003.169249] Lustre: server umount lustre-OST0001 complete
      [ 6007.190173] BUG: sleeping function called from invalid context at kernel/mutex.c:576
      [ 6007.190482] in_atomic(): 1, irqs_disabled(): 0, pid: 20641, name: rmmod
      [ 6007.190659] 1 lock held by rmmod/20641:
      [ 6007.190805]  #0:  (&new_bkts[i]->hsb_lock.rw){......}, at: [<ffffffffa015151d>] cfs_hash_rw_lock+0xd/0x20 [libcfs]
      [ 6007.191177] CPU: 3 PID: 20641 Comm: rmmod Tainted: GF       W  O--------------   3.10.0-debug #5
      [ 6007.191480] Hardware name: Bochs Bochs, BIOS Bochs 01/01/2011
      [ 6007.191648]  ffff880083aac540 000000008428f159 ffff8800967e7d50 ffffffff816ccb68
      [ 6007.191954]  ffff8800967e7d68 ffffffff810a8fd9 ffff8800a8d2b0c0 ffff8800967e7de8
      [ 6007.192275]  ffffffff816d0dd5 0000000000000000 ffff8800967e7de0 0000000000000246
      [ 6007.192582] Call Trace:
      [ 6007.192716]  [<ffffffff816ccb68>] dump_stack+0x19/0x1b
      [ 6007.192879]  [<ffffffff810a8fd9>] __might_sleep+0xe9/0x110
      [ 6007.193063]  [<ffffffff816d0dd5>] mutex_lock_nested+0x55/0x490
      [ 6007.193281]  [<ffffffffa057cfa4>] ? nodemap_destroy+0x74/0x1f0 [ptlrpc]
      [ 6007.193491]  [<ffffffffa05812ab>] nm_member_reclassify_nodemap+0x1b/0x40 [ptlrpc]
      [ 6007.193799]  [<ffffffffa057cfbc>] nodemap_destroy+0x8c/0x1f0 [ptlrpc]
      [ 6007.193993]  [<ffffffffa057d14d>] nodemap_putref+0x2d/0xa0 [ptlrpc]
      [ 6007.194201]  [<ffffffffa057e1f5>] nodemap_hs_put_locked+0x15/0x20 [ptlrpc]
      [ 6007.194392]  [<ffffffffa0151f25>] cfs_hash_bd_del_locked+0x75/0xf0 [libcfs]
      [ 6007.194578]  [<ffffffffa015579c>] cfs_hash_putref+0x1cc/0x500 [libcfs]
      [ 6007.194771]  [<ffffffffa057e22a>] nodemap_cleanup_all+0x2a/0x30 [ptlrpc]
      [ 6007.194967]  [<ffffffffa057e23e>] nodemap_mod_exit+0xe/0x20 [ptlrpc]
      [ 6007.195177]  [<ffffffffa0583bbd>] ptlrpc_exit+0x9/0x44c [ptlrpc]
      [ 6007.195354]  [<ffffffff810e769b>] SyS_delete_module+0x16b/0x2d0
      [ 6007.195526]  [<ffffffff816df369>] system_call_fastpath+0x16/0x1b
      

      Attachments

        Issue Links

          Activity

            People

              wc-triage WC Triage
              green Oleg Drokin
              Votes:
              0 Vote for this issue
              Watchers:
              8 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: