mirror of
https://github.com/freebsd/freebsd-src
synced 2024-10-04 15:40:44 +00:00
Honor the new ATMIO_FLAG_ASYNC that requests asynchronuous open/close
operations on VCs.
This commit is contained in:
parent
2ac9f22556
commit
580f2456b7
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=118534
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue