Honor the new ATMIO_FLAG_ASYNC that requests asynchronuous open/close

operations on VCs.
This commit is contained in:
Hartmut Brandt 2003-08-06 11:53:53 +00:00
parent 2ac9f22556
commit 580f2456b7
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=118534

View File

@ -1315,7 +1315,7 @@ en_close_vcc(struct en_softc *sc, struct atmio_closevcc *cl, int wait)
vc->vflags |= VCC_DRAIN;
DBG(sc, IOCTL, ("VCI %u now draining", cl->vci));
if (!wait) {
if (!wait || (vc->vcc.flags & ATMIO_FLAG_ASYNC)) {
vc->vflags |= VCC_ASYNC;
goto done;
}