提交 926ce2d8 编写于 作者: N NeilBrown 提交者: Linus Torvalds

[PATCH] md: Remove some code that can sleep from under a spinlock

And remove the comments that were put in inplace of a fix too....
Signed-off-by: NNeil Brown <neilb@suse.de>
Signed-off-by: NAndrew Morton <akpm@osdl.org>
Signed-off-by: NLinus Torvalds <torvalds@osdl.org>
上级 6b1117d5
...@@ -215,12 +215,10 @@ static void mddev_put(mddev_t *mddev) ...@@ -215,12 +215,10 @@ static void mddev_put(mddev_t *mddev)
return; return;
if (!mddev->raid_disks && list_empty(&mddev->disks)) { if (!mddev->raid_disks && list_empty(&mddev->disks)) {
list_del(&mddev->all_mddevs); list_del(&mddev->all_mddevs);
/* that blocks */ spin_unlock(&all_mddevs_lock);
blk_cleanup_queue(mddev->queue); blk_cleanup_queue(mddev->queue);
/* that also blocks */
kobject_unregister(&mddev->kobj); kobject_unregister(&mddev->kobj);
/* result blows... */ } else
}
spin_unlock(&all_mddevs_lock); spin_unlock(&all_mddevs_lock);
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册