projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6b1117d
)
[PATCH] md: Remove some code that can sleep from under a spinlock
author
NeilBrown
<
[email protected]
>
Fri, 31 Mar 2006 10:32:02 +0000
(
02:32
-0800)
committer
Linus Torvalds
<
[email protected]
>
Fri, 31 Mar 2006 20:19:01 +0000
(12:19 -0800)
And remove the comments that were put in inplace of a fix too....
Signed-off-by: Neil Brown <
[email protected]
>
Signed-off-by: Andrew Morton <
[email protected]
>
Signed-off-by: Linus Torvalds <
[email protected]
>
drivers/md/md.c
patch
|
blob
|
history
diff --git
a/drivers/md/md.c
b/drivers/md/md.c
index 039e071c10074190ec999079b713cf6c8f82a603..1ed5152db45060b9ec1ce224b1c3ebb30cb3fe1d 100644
(file)
--- a/
drivers/md/md.c
+++ b/
drivers/md/md.c
@@
-215,13
+215,11
@@
static void mddev_put(mddev_t *mddev)
return;
if (!mddev->raid_disks && list_empty(&mddev->disks)) {
list_del(&mddev->all_mddevs);
- /* that blocks */
+ spin_unlock(&all_mddevs_lock);
blk_cleanup_queue(mddev->queue);
- /* that also blocks */
kobject_unregister(&mddev->kobj);
- /* result blows... */
- }
- spin_unlock(&all_mddevs_lock);
+ } else
+ spin_unlock(&all_mddevs_lock);
}
static mddev_t * mddev_find(dev_t unit)