Skip to content

Commit

Permalink
[PATCH] md: Remove some code that can sleep from under a spinlock
Browse files Browse the repository at this point in the history
And remove the comments that were put in inplace of a fix too....

Signed-off-by: Neil Brown <neilb@suse.de>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
  • Loading branch information
NeilBrown authored and Linus Torvalds committed Mar 31, 2006
1 parent 6b1117d commit 926ce2d
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions drivers/md/md.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 926ce2d

Please sign in to comment.