diff options
| author | Jason Yan <[email protected]> | 2018-09-25 10:56:52 +0800 |
|---|---|---|
| committer | Martin K. Petersen <[email protected]> | 2018-09-25 21:20:23 -0400 |
| commit | 32c850bf587f993b2620b91e5af8a64a7813f504 (patch) | |
| tree | bf3166004098e7a1b5945a1acefc7d6ce815dad5 /tools/perf/scripts/python/bin | |
| parent | 640208a1c91c380a09056a26d3750b137b7e8c4d (diff) | |
scsi: libsas: always unregister the old device if going to discover new
If we went into sas_rediscover_dev() the attached_sas_addr was already insured
not to be zero. So it's unnecessary to check if the attached_sas_addr is zero.
And although if the sas address is not changed, we always have to unregister
the old device when we are going to register a new one. We cannot just leave
the device there and bring up the new.
Signed-off-by: Jason Yan <[email protected]>
CC: chenxiang <[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: Johannes Thumshirn <[email protected]>
Reviewed-by: Hannes Reinecke <[email protected]>
Signed-off-by: Martin K. Petersen <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/bin')
0 files changed, 0 insertions, 0 deletions