Skip to content

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

Closed
wenchao-hao wants to merge 1 commit into
doug-gilbert:masterfrom
wenchao-hao:master
Closed

rescan-scsi-bus: sgdevice26: do not traverse sg class if scsi_device isnot added#21
wenchao-hao wants to merge 1 commit into
doug-gilbert:masterfrom
wenchao-hao:master

Conversation

@wenchao-hao

Copy link
Copy Markdown

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
Copy Markdown
Owner

Added this patch upstream and mirrored it here.

@wenchao-hao

Copy link
Copy Markdown
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