Commit ee3208bf authored by Neil Brown's avatar Neil Brown Committed by Linus Torvalds

[PATCH] md 16 of 22 - Next small step to improved mddev management.

md_ioctl doesn't need to mddev_find, as the mddev must
be in the bd_inode->u.generic_ip.  This means we don't need
to mddev_put either.
parent dfdf2be0
......@@ -2490,10 +2490,10 @@ static int md_ioctl(struct inode *inode, struct file *file,
* Commands creating/starting a new array:
*/
mddev = mddev_find(minor);
mddev = inode->i_bdev->bd_inode->u.generic_ip;
if (!mddev) {
err = -ENOMEM;
BUG();
goto abort;
}
......@@ -2679,7 +2679,6 @@ static int md_ioctl(struct inode *inode, struct file *file,
done_unlock:
abort_unlock:
unlock_mddev(mddev);
mddev_put(mddev);
return err;
done:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment