Public bug reported:

>From the patch series cover letter:

Now the libsas hotplug has some issues, Dan Williams report
a similar bug here before
https://www.mail-archive.com/[email protected]/msg39187.html

The issues we have found
1. if LLDD burst reports lots of phy-up/phy-down sas events, some events
   may lost because a same sas events is pending now, finally libsas topo
   may different the hardware.
2. receive a phy down sas event, libsas call sas_deform_port to remove
   devices, it would first delete the sas port, then put a destruction
   discovery event in a new work, and queue it at the tail of workqueue,
   once the sas port be deleted, its children device will be deleted too,
   when the destruction work start, it will found the target device has
   been removed, and report a sysfs warnning.
3. since a hotplug process will be devided into several works, if a phy up
   sas event insert into phydown works, like
   destruction work  ---> PORTE_BYTES_DMAED (sas_form_port) 
---->PHYE_LOSS_OF_SIGNAL
   the hot remove flow would broken by PORTE_BYTES_DMAED event, it's not
   we expected, and issues would occur.

There's also a small 3-patch series of fixes in libsas I plan to include as 
well:
Jason Yan (2):
  scsi: libsas: fix memory leak in sas_smp_get_phy_events()
  scsi: libsas: fix error when getting phy events

chenxiang (1):
  scsi: libsas: initialize sas_phy status according to response of
    DISCOVER

** Affects: linux (Ubuntu)
     Importance: Medium
     Assignee: dann frazier (dannf)
         Status: In Progress

-- 
You received this bug notification because you are a member of Kernel
Packages, which is subscribed to linux in Ubuntu.
https://bugs.launchpad.net/bugs/1752146

Title:
  errors with sas hotplug

Status in linux package in Ubuntu:
  In Progress

Bug description:
  From the patch series cover letter:

  Now the libsas hotplug has some issues, Dan Williams report
  a similar bug here before
  https://www.mail-archive.com/[email protected]/msg39187.html

  The issues we have found
  1. if LLDD burst reports lots of phy-up/phy-down sas events, some events
     may lost because a same sas events is pending now, finally libsas topo
     may different the hardware.
  2. receive a phy down sas event, libsas call sas_deform_port to remove
     devices, it would first delete the sas port, then put a destruction
     discovery event in a new work, and queue it at the tail of workqueue,
     once the sas port be deleted, its children device will be deleted too,
     when the destruction work start, it will found the target device has
     been removed, and report a sysfs warnning.
  3. since a hotplug process will be devided into several works, if a phy up
     sas event insert into phydown works, like
     destruction work  ---> PORTE_BYTES_DMAED (sas_form_port) 
---->PHYE_LOSS_OF_SIGNAL
     the hot remove flow would broken by PORTE_BYTES_DMAED event, it's not
     we expected, and issues would occur.

  There's also a small 3-patch series of fixes in libsas I plan to include as 
well:
  Jason Yan (2):
    scsi: libsas: fix memory leak in sas_smp_get_phy_events()
    scsi: libsas: fix error when getting phy events

  chenxiang (1):
    scsi: libsas: initialize sas_phy status according to response of
      DISCOVER

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1752146/+subscriptions

-- 
Mailing list: https://launchpad.net/~kernel-packages
Post to     : [email protected]
Unsubscribe : https://launchpad.net/~kernel-packages
More help   : https://help.launchpad.net/ListHelp

Reply via email to