diff options
| author | Alasdair G Kergon <[email protected]> | 2006-11-08 17:44:42 -0800 |
|---|---|---|
| committer | Linus Torvalds <[email protected]> | 2006-11-08 18:29:23 -0800 |
| commit | bfc5ecdf48b529f6a2bd98ba26bfac39ca8cd8a5 (patch) | |
| tree | 4b62c928d685a9badbdcb1a1048479ee9b8594f9 /include/linux/timerqueue.h | |
| parent | c06cb8b1c4d25e5b4d7a2d7c2462619de1e0dbc4 (diff) | |
[PATCH] dm: fix find_device race
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 <[email protected]>
Cc: <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
Diffstat (limited to 'include/linux/timerqueue.h')
0 files changed, 0 insertions, 0 deletions