https://bugzilla.kernel.org/show_bug.cgi?id=199435

--- Comment #32 from Don (don.br...@microsemi.com) ---
Created attachment 282479
  --> https://bugzilla.kernel.org/attachment.cgi?id=282479&action=edit
Patch to correct resets

    hpsa: correct device resets

    - Correct a race condition that occurs between the
      reset handler and the completion handler. There
      are times when the wait_event condition is never
      met due to this race condition and the reset never
      completes.

      The reset_pending field is NULL initially.

      t  Reset Handler Thread     Completion Thread
      -- --------------------     -----------------
      t1                          if (c->reset_pending)
      t2 c->reset_pending = dev;     if (atomic_dev_and_test(counter))
      t3 atomic_inc(counter)             wait_up_all(event_sync_wait_queue)
      t4
      t5 wait_event(...counter == 0)

    Kernel.org Bugzilla:
               https://bugzilla.kernel.org/show_bug.cgi?id=1994350
               Bug 199435 - HPSA + P420i resetting logical Direct-Access
                            never complete


Here is the patch I am preparing to send up to kernel.org. I have been testing
this patch for some time now and I feel it is ready.

-- 
You are receiving this mail because:
You are the assignee for the bug.

Reply via email to