Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.
RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.

Bug 2044684

Summary: scsi: core: Make sure sdev->queue_depth is <= max(shost->can_queue, 1024)
Product: Red Hat Enterprise Linux 9 Reporter: Ming Lei <minlei>
Component: kernelAssignee: Ewan D. Milne <emilne>
kernel sub component: Storage Drivers QA Contact: Storage QE <storage-qe>
Status: CLOSED NEXTRELEASE Docs Contact:
Severity: unspecified    
Priority: unspecified CC: emilne, minlei, revers, storage-qe
Version: 9.0Keywords: Bugfix
Target Milestone: rcFlags: pm-rhel: mirror+
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: kernel-5.14.0-92.el9 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: 2044683 Environment:
Last Closed: 2022-05-17 17:00:56 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On: 2044683    
Bug Blocks:    

Description Ming Lei 2022-01-25 01:40:59 UTC
+++ This bug was initially created as a clone of Bug #2044683 +++

Description of problem:

https://lore.kernel.org/linux-scsi/20211203231950.193369-2-bvanassche@acm.org/

https://lore.kernel.org/linux-scsi/be78dc2cfeecaafd171060fbebda2d268d2a94e5.camel@suse.com/

This way may take huge much memory for allocating ->budget_map for some
scsi host controllers, and even cause allocation failure, see the report
above.


Version-Release number of selected component (if applicable):


How reproducible:

100%


Steps to Reproduce:


Actual results:


Expected results:


Additional info:

Comment 1 Ewan D. Milne 2022-05-17 17:00:56 UTC
Should be fixed by 9.1 SCSI update, see bug 2071032

scsi: core: Fix sbitmap depth in scsi_realloc_sdev_budget_map()
lib/sbitmap: allocate sb->map via kvzalloc_node
scsi: core: Reallocate device's budget map on queue depth change
scsi: core: Fix scsi_device_max_queue_depth()

Also see earlier patch to 9.0 by Ming that reduced the size of struct sbitmap_word

lib/sbitmap: kill 'depth' from sbitmap_word