Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 25 Mar 2014 23:13:46 +0000 (UTC)
From:      Mateusz Guzik <mjg@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r263753 - head/sys/kern
Message-ID:  <201403252313.s2PNDkT6047415@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
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);



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201403252313.s2PNDkT6047415>