Details

    • Bug
    • Resolution: Fixed
    • Minor
    • Lustre 2.10.0
    • None
    • None
    • 3
    • 9223372036854775807

    Description

      I see there is a defect about imp_replay_cursor which can lead to ptlrpc_replay_next() run into a dead loop:

      • During replay, imp_replay_cursor moves to an open request A;
      • Client close the file, so that rq_replay of the A open request is cleared;
      • ptlrpc_replay_next() is called to continue replay, it calls ptlrpc_free_committed() to remove committed/closed request from replay/committed list, request A is removed from committed list; (The open request is still being held by the pending close request, so it's not freed);
      • ptlrpc_replay_next() then try to move imp_replay_cursor to next, but the next is itself now, dead loop;

      Attachments

        Activity

          [LU-8765] dead loop in ptlrpc_replay_next()
          pjones Peter Jones added a comment -

          Landed for 2.10

          pjones Peter Jones added a comment - Landed for 2.10

          Oleg Drokin (oleg.drokin@intel.com) merged in patch https://review.whamcloud.com/23418/
          Subject: LU-8765 ptlrpc: update replay cursor when close during replay
          Project: fs/lustre-release
          Branch: master
          Current Patch Set:
          Commit: 1e8dfacb6f58d875d7840eb89a3af3e780659367

          gerrit Gerrit Updater added a comment - Oleg Drokin (oleg.drokin@intel.com) merged in patch https://review.whamcloud.com/23418/ Subject: LU-8765 ptlrpc: update replay cursor when close during replay Project: fs/lustre-release Branch: master Current Patch Set: Commit: 1e8dfacb6f58d875d7840eb89a3af3e780659367

          Niu Yawei (yawei.niu@intel.com) uploaded a new patch: http://review.whamcloud.com/23418
          Subject: LU-8765 ptlrpc: update replay cursor when close during replay
          Project: fs/lustre-release
          Branch: master
          Current Patch Set: 1
          Commit: f09f17661323a0f134d9ef02044b863693ee0a9c

          gerrit Gerrit Updater added a comment - Niu Yawei (yawei.niu@intel.com) uploaded a new patch: http://review.whamcloud.com/23418 Subject: LU-8765 ptlrpc: update replay cursor when close during replay Project: fs/lustre-release Branch: master Current Patch Set: 1 Commit: f09f17661323a0f134d9ef02044b863693ee0a9c

          People

            niu Niu Yawei (Inactive)
            niu Niu Yawei (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: