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

An easy way to switch from panic to BUG

Details

    • Bug
    • Resolution: Incomplete
    • Minor
    • None
    • Lustre 2.6.0
    • 3
    • 14364

    Description

      Hi,

      panic on LBUG ends in a way where some registers are not properly backed up. So we loose the opportunity to retrieve the content of the registers by the time of the failure.
      Having BUG instead of panic sends an invalid instruction raising an interrupt and then dump all registers, giving a real advantage of not losing this critical information.

      This is why we propose to add a new 'use_bug_instead_of_panic' entry under /proc/sys/lnet, that is complementary with panic_on_lbug. To use it, panic_on_lbug must be set, and in that case we replace panic with BUG.

      I will attach a patch to address this code change.

      Sebastien.

      Attachments

        Activity

          People

            emoly.liu Emoly Liu
            sebastien.buisson Sebastien Buisson (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: