When returning EIO from DEVFSIO_RADD ioctl, drop the exclusive rule

lock.  Otherwise the system comes to a rather sudden and grinding
halt.

MFC after:	1 week
This commit is contained in:
Robert Watson 2006-01-03 09:49:10 +00:00
parent cd17a1f7ba
commit 8f0d99d790

View File

@ -186,8 +186,10 @@ devfs_rules_ioctl(struct devfs_mount *dm, u_long cmd, caddr_t data, struct threa
error = EEXIST;
break;
}
if (rid2rsn(dr->dr_id) == 0)
return (EIO);
if (rid2rsn(dr->dr_id) == 0) {
error = EIO;
break;
}
error = devfs_rule_insert(dr);
break;
case DEVFSIO_RAPPLY: