Skip to content

rescan-scsi-bus: sgdevice26: do not traverse sg class if scsi_device isnot added #21

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 1 commit into from

Conversation

wenchao-hao
Copy link

For system which has a massive number of scsi_devices, it would takes a long time to
traverse /sys/class/scsi_generic to find a related sg. If the scsi_device of specific
scsiid host:channel:target:lun did not added, the traverse would find no sg neither.

Signed-off-by: Wenchao Hao haowenchao@huawei.com

…isnot added

For system which has a massive number of scsi_devices, it would takes a long time to
traverse /sys/class/scsi_generic to find a related sg. If the scsi_device of specific
scsiid host:channel:target:lun did not added, the traverse would find no sg neither.

Signed-off-by: Wenchao Hao <haowenchao@huawei.com>
doug-gilbert added a commit that referenced this pull request Aug 7, 2022
…isnot added

For system which has a massive number of scsi_devices, it would takes a long time to
traverse /sys/class/scsi_generic to find a related sg. If the scsi_device of specific
scsiid host:channel:target:lun did not added, the traverse would find no sg neither.

Signed-off-by: Wenchao Hao <haowenchao@huawei.com>

From: #21


git-svn-id: https://svn.bingwo.ca/repos/sg3_utils/trunk@965 6180dd3e-e324-4e3e-922d-17de1ae2f315
@doug-gilbert
Copy link
Owner

Added this patch upstream and mirrored it here.

@wenchao-hao
Copy link
Author

Added this patch upstream and mirrored it here.

OK, I would close this PR

@wenchao-hao wenchao-hao closed this Aug 7, 2022
doug-gilbert added a commit that referenced this pull request Sep 5, 2022
#21
change to rescan_scsi_bus.sh was applied in an
earlier commit but not noted.



git-svn-id: https://svn.bingwo.ca/repos/sg3_utils/trunk@970 6180dd3e-e324-4e3e-922d-17de1ae2f315
mwilck pushed a commit to openSUSE/sg3_utils-until-2023 that referenced this pull request Jan 27, 2023
…isnot added

For system which has a massive number of scsi_devices, it would takes a long time to
traverse /sys/class/scsi_generic to find a related sg. If the scsi_device of specific
scsiid host:channel:target:lun did not added, the traverse would find no sg neither.

Signed-off-by: Wenchao Hao <haowenchao@huawei.com>

From: doug-gilbert/sg3_utils#21

cherry-pick of upstream
4ea97e6 ("rescan-scsi-bus: sgdevice26: do not traverse sg class if scsi_device isnot added")
git-svn-id: https://svn.bingwo.ca/repos/sg3_utils/trunk@965 6180dd3e-e324-4e3e-922d-17de1ae2f315
hreinecke pushed a commit to hreinecke/sg3_utils that referenced this pull request Aug 17, 2023
…isnot added

For system which has a massive number of scsi_devices, it would takes a long time to
traverse /sys/class/scsi_generic to find a related sg. If the scsi_device of specific
scsiid host:channel:target:lun did not added, the traverse would find no sg neither.

Signed-off-by: Wenchao Hao <haowenchao@huawei.com>

From: doug-gilbert/sg3_utils#21


git-svn-id: https://svn.bingwo.ca/repos/sg3_utils/trunk@965 6180dd3e-e324-4e3e-922d-17de1ae2f315
hreinecke pushed a commit to hreinecke/sg3_utils that referenced this pull request Aug 17, 2023
doug-gilbert/sg3_utils#21
change to rescan_scsi_bus.sh was applied in an
earlier commit but not noted.



git-svn-id: https://svn.bingwo.ca/repos/sg3_utils/trunk@970 6180dd3e-e324-4e3e-922d-17de1ae2f315
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants