Bug 214905
Summary: | [RHEL5 Beta2] device-mapper: /sys/block/dm-* remain after successful 'dmsetup remove_all'. | ||||||||
---|---|---|---|---|---|---|---|---|---|
Product: | Red Hat Enterprise Linux 5 | Reporter: | Kiyoshi Ueda <kueda> | ||||||
Component: | kernel | Assignee: | Milan Broz <mbroz> | ||||||
Status: | CLOSED CURRENTRELEASE | QA Contact: | Corey Marthaler <cmarthal> | ||||||
Severity: | medium | Docs Contact: | |||||||
Priority: | medium | ||||||||
Version: | 5.0 | CC: | agk, christophe.varoqui, dwysocha, egoggin, jbrassow, jnomura, junichi.nomura, kueda, kueda, lmb, mbroz, prockai, pvrabec, rkenna, tao, tranlan | ||||||
Target Milestone: | --- | ||||||||
Target Release: | --- | ||||||||
Hardware: | All | ||||||||
OS: | Linux | ||||||||
Whiteboard: | |||||||||
Fixed In Version: | beta2 | Doc Type: | Bug Fix | ||||||
Doc Text: | Story Points: | --- | |||||||
Clone Of: | Environment: | ||||||||
Last Closed: | 2006-12-23 02:25:48 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
Kiyoshi Ueda
2006-11-09 22:11:58 UTC
Created attachment 140846 [details]
Test script
This request was evaluated by Red Hat Product Management for inclusion in a Red Hat Enterprise Linux major release. Product Management has requested further review of this request by Red Hat Engineering, for potential inclusion in a Red Hat Enterprise Linux Major release. This request is not yet committed for inclusion. Created attachment 140935 [details]
FIx find_device race
Original header:
There is a race between dev_create() and find_device().
If the mdptr has not yet been stored against a device,
find_device() needs to behave as though no device was
found. It already returns NULL, but there is a dm_put()
missing: it must drop the reference dm_get_md() took.
The bug was introduced by dm-fix-mapped-device-ref-counting.patch.
It manifests itself if another dm ioctl attempts to reference a
newly-created device while the device creation ioctl is still running.
The consequence is that the device cannot be removed until the machine
is rebooted. Certain udev configurations can lead to this happening.
Signed-off-by: Alasdair G Kergon <agk>
Cc: dm-devel
in 2.6.18-1.2767.el5 A package has been built which should help the problem described in this bug report. This report is therefore being closed with a resolution of CURRENTRELEASE. You may reopen this bug report if the solution does not work for you. |