Bug 140646
Summary: | There is an issue with sg_open in RHEL 3.0 U4 . | ||||||
---|---|---|---|---|---|---|---|
Product: | Red Hat Enterprise Linux 3 | Reporter: | Heather Conway <conway_heather> | ||||
Component: | kernel | Assignee: | Doug Ledford <dledford> | ||||
Status: | CLOSED NOTABUG | QA Contact: | |||||
Severity: | medium | Docs Contact: | |||||
Priority: | medium | ||||||
Version: | 3.0 | CC: | coughlan, digiovanni_lucio, petrides, riel, rkenna | ||||
Target Milestone: | --- | ||||||
Target Release: | --- | ||||||
Hardware: | All | ||||||
OS: | Linux | ||||||
Whiteboard: | |||||||
Fixed In Version: | Doc Type: | Bug Fix | |||||
Doc Text: | Story Points: | --- | |||||
Clone Of: | Environment: | ||||||
Last Closed: | 2004-12-03 23:39:38 UTC | Type: | --- | ||||
Regression: | --- | Mount Type: | --- | ||||
Documentation: | --- | CRM: | |||||
Verified Versions: | Category: | --- | |||||
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |||||
Cloudforms Team: | --- | Target Upstream Version: | |||||
Embargoed: | |||||||
Attachments: |
|
Description
Heather Conway
2004-11-23 23:43:02 UTC
Created attachment 107355 [details]
patch to sg_opn for RHEL 3.0 U4
What spin lock is being held while calling sg_open? Per the PowerPath team: "A spinlock specific to the Powerpath base driver is being held around the call to sg_open." Does that help or do you need further information? Thanks. Ugh. OK, tell them to fix their code. The sg_open() call is in the open() syscall chain, is intended for user space use, and is a function that can sleep. Holding a spinlock around this is *NOT* allowed. The only lock that should ever be held on entry to this function is the BKL, and that's a lock exception where sleeping/preemption is allowed. The use of spin_lock_irq and unlock_irq is perfectly safe/correct when the function is called properly. Calling sg_open with a spin lock held is going to break horribly on RHEL4 and is broken but we don't spit out BUG()'s on RHEL3. Thanks Doug. I will relay the information to the PowerPath team and will let you know if there are any additional questions. Thanks. Just in case anyone runs in to this problem: The issue will be fixed in the next version of PowerPath. EMC is also preparing a hot fix for the current version if PowerPath. Contact EMC customer suppport. PowerPath 4.3.2 b011 is being released on April 11, 2005. |