Commit 4d5ffe99 authored by Neil Brown's avatar Neil Brown Committed by Linus Torvalds

[PATCH] md: Make the old-ioctl warning in md only complain about MD ioctls.

..as some standard ioctls expect the per-device ioctl routine
to return EINVAL and then fall back on a standard implementation.
parent 09b63e46
......@@ -2408,9 +2408,10 @@ static int md_ioctl(struct inode *inode, struct file *file,
}
default:
printk(KERN_WARNING "md: %s(pid %d) used obsolete MD ioctl, "
"upgrade your software to use new ictls.\n",
current->comm, current->pid);
if (_IOC_TYPE(cmd) == MD_MAJOR)
printk(KERN_WARNING "md: %s(pid %d) used obsolete MD ioctl, "
"upgrade your software to use new ictls.\n",
current->comm, current->pid);
err = -EINVAL;
goto abort_unlock;
}
......
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