diff options
author | Jason Yan <[email protected]> | 2019-05-14 10:42:38 +0800 |
---|---|---|
committer | Martin K. Petersen <[email protected]> | 2019-05-29 22:08:19 -0400 |
commit | 04cf8b32bc6d3fbc640d5f62b3a14df207d3e1db (patch) | |
tree | 5050ab50efdb9b02c1e47ec2b45ea3a0fb99d1a7 /tools/perf/scripts/python/export-to-postgresql.py | |
parent | 12e750bc62044de096ab9a95201213fd912b9994 (diff) |
scsi: libsas: only clear phy->in_shutdown after shutdown event done
When the event queue is full of phy up and down events and reached the
threshold, we will queue a shutdown-event, and set phy->in_shutdown so that
we will not queue a shutdown-event again. But before the shutdown-event can
be executed, every phy-down event will clear
phy->in_shutdown and a new shutdown-event will be queued. The queue will
be full of these shutdown-events.
Fix this by only clear phy->in_shutdown in sas_phye_shutdown(), that is
after the first shutdown-event has been executed.
Fixes: f12486e06ae8 ("scsi: libsas: shut down the PHY if events reached the threshold")
Signed-off-by: Jason Yan <[email protected]>
CC: John Garry <[email protected]>
CC: Johannes Thumshirn <[email protected]>
CC: Ewan Milne <[email protected]>
CC: Christoph Hellwig <[email protected]>
CC: Tomas Henzl <[email protected]>
CC: Dan Williams <[email protected]>
CC: Hannes Reinecke <[email protected]>
Reviewed-by: John Garry <[email protected]>
Signed-off-by: Martin K. Petersen <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions