Remove lockless check in devopen, while correct it does not make much sense.
Suggested by: imp MFC after: 6 days
This commit is contained in:
parent
c690e3d26e
commit
47c4497087
@ -421,8 +421,6 @@ static int
|
||||
devopen(struct cdev *dev, int oflags, int devtype, struct thread *td)
|
||||
{
|
||||
|
||||
if (devsoftc.inuse)
|
||||
return (EBUSY);
|
||||
mtx_lock(&devsoftc.mtx);
|
||||
if (devsoftc.inuse) {
|
||||
mtx_unlock(&devsoftc.mtx);
|
||||
|
Loading…
Reference in New Issue
Block a user