Date: Sat, 12 Jul 2014 15:35:04 +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: r268570 - head/sys/kern Message-ID: <201407121535.s6CFZ42f063120@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: mjg Date: Sat Jul 12 15:35:04 2014 New Revision: 268570 URL: http://svnweb.freebsd.org/changeset/base/268570 Log: Clear nonblock and async on devctl close instaed of open. This is a purely cosmetic change. Modified: head/sys/kern/subr_bus.c Modified: head/sys/kern/subr_bus.c ============================================================================== --- head/sys/kern/subr_bus.c Sat Jul 12 15:19:30 2014 (r268569) +++ head/sys/kern/subr_bus.c Sat Jul 12 15:35:04 2014 (r268570) @@ -438,8 +438,6 @@ devopen(struct cdev *dev, int oflags, in } /* move to init */ devsoftc.inuse = 1; - devsoftc.nonblock = 0; - devsoftc.async = 0; mtx_unlock(&devsoftc.mtx); return (0); } @@ -450,6 +448,8 @@ devclose(struct cdev *dev, int fflag, in mtx_lock(&devsoftc.mtx); devsoftc.inuse = 0; + devsoftc.nonblock = 0; + devsoftc.async = 0; cv_broadcast(&devsoftc.cv); funsetown(&devsoftc.sigio); mtx_unlock(&devsoftc.mtx);
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201407121535.s6CFZ42f063120>