svn commit: r263753 - head/sys/kern
Mateusz Guzik
mjg at FreeBSD.org
Tue Mar 25 23:13:46 UTC 2014
Author: mjg
Date: Tue Mar 25 23:13:46 2014
New Revision: 263753
URL: http://svnweb.freebsd.org/changeset/base/263753
Log:
Remove lockless check in devopen, while correct it does not make much sense.
Suggested by: imp
MFC after: 6 days
Modified:
head/sys/kern/subr_bus.c
Modified: head/sys/kern/subr_bus.c
==============================================================================
--- head/sys/kern/subr_bus.c Tue Mar 25 22:49:33 2014 (r263752)
+++ head/sys/kern/subr_bus.c Tue Mar 25 23:13:46 2014 (r263753)
@@ -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);
More information about the svn-src-all
mailing list