mirror of
https://github.com/torvalds/linux.git
synced 2024-11-18 01:51:53 +00:00
2a188cb42b
Previously, when this module was unloaded via 'rmmod' with at least one
drive attached, the SCSI error handler thread would become stuck in an
infinite recovery loop and lockup the system, necessitating a reboot.
Once the SAS layer is detached, the driver will fail any subsequent
commands since the target devices are removed. However, removing the
SCSI host generates a SYNCHRONIZE CACHE (10) command, which was failed
and left the error handler no method of recovery.
This patch simply removes the SCSI host first so that no more commands
can come down, prior to cleaning up the SAS layer. Note that the stack
is built up with the SCSI host first, and then the SAS layer. Perhaps
it should be reversed for symmetry, so that commands cannot be sent to
the pm80xx driver prior to attaching the SAS layer?
What was really strange about this bug was that it was introduced at
commit
|
||
---|---|---|
.. | ||
Makefile | ||
pm80xx_hwi.c | ||
pm80xx_hwi.h | ||
pm8001_chips.h | ||
pm8001_ctl.c | ||
pm8001_ctl.h | ||
pm8001_defs.h | ||
pm8001_hwi.c | ||
pm8001_hwi.h | ||
pm8001_init.c | ||
pm8001_sas.c | ||
pm8001_sas.h |