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

osp_sync_thread()) ASSERTION( thread->t_flags != SVC_RUNNING ) failed: 64767 changes, 41295 in progress, 1 in flight

Details

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

    Description

      [209677.208444] LustreError: 4511:0:(llog_cat.c:269:llog_cat_id2handle()) snx11205-OST0000-osc-MDT0001: error opening log id [0x724a:0x1:0x0]:0: rc = -2
      [209677.224367] LustreError: 4511:0:(osp_sync.c:1258:osp_sync_thread()) ASSERTION( thread->t_flags != SVC_RUNNING ) failed: 33830 changes, 284 in progress, 0 in flight
      [209677.241177] LustreError: 4511:0:(osp_sync.c:1258:osp_sync_thread()) LBUG
      [209677.249045] Pid: 4511, comm: osp-syn-0-1
      [209677.254171] 
      Call Trace:
      [209677.260460]  [<ffffffffc0b347ae>] libcfs_call_trace+0x4e/0x60 [libcfs]
      [209677.268138]  [<ffffffffc0b3483c>] lbug_with_loc+0x4c/0xb0 [libcfs]
      [209677.275498]  [<ffffffffc1710f9b>] osp_sync_thread+0xa1b/0xa70 [osp]
      [209677.282872]  [<ffffffff816b3e2c>] ? __schedule+0x47c/0xa30
      [209677.289558]  [<ffffffffc1710580>] ? osp_sync_thread+0x0/0xa70 [osp]
      [209677.296915]  [<ffffffff810b4031>] kthread+0xd1/0xe0
      [209677.302876]  [<ffffffff810b3f60>] ? kthread+0x0/0xe0
      [209677.308942]  [<ffffffff816c155d>] ret_from_fork+0x5d/0xb0
      [209677.315441]  [<ffffffff810b3f60>] ? kthread+0x0/0xe0
      [209677.321485] 
      [209677.324090] Kernel panic - not syncing: LBUG
      

      It is close to LU-7001 and could happen for wrapped catalog only. A race between llog_process_thread and llog_add. The LU-7001 addressed this particular problem in past, but it lefts a small window for the same race, unfortunately.

      Attachments

        Activity

          [LU-11392] osp_sync_thread()) ASSERTION( thread->t_flags != SVC_RUNNING ) failed: 64767 changes, 41295 in progress, 1 in flight
          pjones Peter Jones added a comment -

          Landed for 2.12

          pjones Peter Jones added a comment - Landed for 2.12

          Oleg Drokin (green@whamcloud.com) merged in patch https://review.whamcloud.com/33192/
          Subject: LU-11392 tests: check race for llog_process_thread
          Project: fs/lustre-release
          Branch: master
          Current Patch Set:
          Commit: 0f2d8154a888e3db0739ebec2279a0cafb6a0afd

          gerrit Gerrit Updater added a comment - Oleg Drokin (green@whamcloud.com) merged in patch https://review.whamcloud.com/33192/ Subject: LU-11392 tests: check race for llog_process_thread Project: fs/lustre-release Branch: master Current Patch Set: Commit: 0f2d8154a888e3db0739ebec2279a0cafb6a0afd

          Oleg Drokin (green@whamcloud.com) merged in patch https://review.whamcloud.com/33193/
          Subject: LU-11392 llog: fix race llog_process_thread vs llog_add
          Project: fs/lustre-release
          Branch: master
          Current Patch Set:
          Commit: 38c5f9aa6cb5f98f684e8bbe67ec3bd8e2204467

          gerrit Gerrit Updater added a comment - Oleg Drokin (green@whamcloud.com) merged in patch https://review.whamcloud.com/33193/ Subject: LU-11392 llog: fix race llog_process_thread vs llog_add Project: fs/lustre-release Branch: master Current Patch Set: Commit: 38c5f9aa6cb5f98f684e8bbe67ec3bd8e2204467

          Alexandr Boyko (c17825@cray.com) uploaded a new patch: https://review.whamcloud.com/33193
          Subject: LU-11392 llog: fix race llog_process_thread vs llog_add
          Project: fs/lustre-release
          Branch: master
          Current Patch Set: 1
          Commit: b5399949083b8b4a1ecc2642f8686423ecda8bae

          gerrit Gerrit Updater added a comment - Alexandr Boyko (c17825@cray.com) uploaded a new patch: https://review.whamcloud.com/33193 Subject: LU-11392 llog: fix race llog_process_thread vs llog_add Project: fs/lustre-release Branch: master Current Patch Set: 1 Commit: b5399949083b8b4a1ecc2642f8686423ecda8bae

          Alexandr Boyko (c17825@cray.com) uploaded a new patch: https://review.whamcloud.com/33192
          Subject: LU-11392 tests: check race for llog_process_thread
          Project: fs/lustre-release
          Branch: master
          Current Patch Set: 1
          Commit: 607589044ca2f789f1c545c3cfd527999600bcdd

          gerrit Gerrit Updater added a comment - Alexandr Boyko (c17825@cray.com) uploaded a new patch: https://review.whamcloud.com/33192 Subject: LU-11392 tests: check race for llog_process_thread Project: fs/lustre-release Branch: master Current Patch Set: 1 Commit: 607589044ca2f789f1c545c3cfd527999600bcdd

          People

            aboyko Alexander Boyko
            aboyko Alexander Boyko
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: