diff options
author | James Bottomley <jejb@mulgrave.il.steeleye.com> | 2006-03-21 14:05:45 -0500 |
---|---|---|
committer | James Bottomley <jejb@mulgrave.il.steeleye.com> | 2006-03-21 14:05:45 -0500 |
commit | d04cdb64212eb5ae6a98026a97dda626e40e8e9a (patch) | |
tree | b6a7dbb21ccfceb915844e9a330b3d3dfcaf3c5b /drivers/md/md.c | |
parent | 2f8600dff2b140096a7df781884e918a16aa90e0 (diff) | |
parent | ec1248e70edc5cf7b485efcc7b41e44e10f422e5 (diff) |
Merge ../linux-2.6
Diffstat (limited to 'drivers/md/md.c')
-rw-r--r-- | drivers/md/md.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/drivers/md/md.c b/drivers/md/md.c index d05e3125d298..5ed2228745cb 100644 --- a/drivers/md/md.c +++ b/drivers/md/md.c | |||
@@ -213,8 +213,11 @@ static void mddev_put(mddev_t *mddev) | |||
213 | return; | 213 | return; |
214 | if (!mddev->raid_disks && list_empty(&mddev->disks)) { | 214 | if (!mddev->raid_disks && list_empty(&mddev->disks)) { |
215 | list_del(&mddev->all_mddevs); | 215 | list_del(&mddev->all_mddevs); |
216 | blk_put_queue(mddev->queue); | 216 | /* that blocks */ |
217 | blk_cleanup_queue(mddev->queue); | ||
218 | /* that also blocks */ | ||
217 | kobject_unregister(&mddev->kobj); | 219 | kobject_unregister(&mddev->kobj); |
220 | /* result blows... */ | ||
218 | } | 221 | } |
219 | spin_unlock(&all_mddevs_lock); | 222 | spin_unlock(&all_mddevs_lock); |
220 | } | 223 | } |