Add more disc_optim calls to track line disc changes

This commit is contained in:
Andrey A. Chernov 1995-12-28 11:58:35 +00:00
parent 2a510f5c12
commit 717df65cce
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=13074
2 changed files with 6 additions and 0 deletions

View File

@ -830,6 +830,7 @@ again:
goto again;
}
error = (*linesw[tp->t_line].l_open)(dev, tp);
disc_optim(tp, &tp->t_termios, rc);
if ((tp->t_state & TS_ISOPEN) && CALLOUT(dev))
rc->rc_flags |= RC_ACTOUT;
out:
@ -860,6 +861,7 @@ rcclose(dev, flag, mode, p)
#endif
s = spltty();
(*linesw[tp->t_line].l_close)(tp, flag);
disc_optim(tp, &tp->t_termios, rc);
rcstop(tp, FREAD | FWRITE);
rc_hardclose(rc);
ttyclose(tp);
@ -1133,6 +1135,7 @@ struct proc *p;
if (error >= 0)
return (error);
error = ttioctl(tp, cmd, data, flag);
disc_optim(tp, &tp->t_termios, rc);
if (error >= 0)
return (error);
s = spltty();

View File

@ -830,6 +830,7 @@ again:
goto again;
}
error = (*linesw[tp->t_line].l_open)(dev, tp);
disc_optim(tp, &tp->t_termios, rc);
if ((tp->t_state & TS_ISOPEN) && CALLOUT(dev))
rc->rc_flags |= RC_ACTOUT;
out:
@ -860,6 +861,7 @@ rcclose(dev, flag, mode, p)
#endif
s = spltty();
(*linesw[tp->t_line].l_close)(tp, flag);
disc_optim(tp, &tp->t_termios, rc);
rcstop(tp, FREAD | FWRITE);
rc_hardclose(rc);
ttyclose(tp);
@ -1133,6 +1135,7 @@ struct proc *p;
if (error >= 0)
return (error);
error = ttioctl(tp, cmd, data, flag);
disc_optim(tp, &tp->t_termios, rc);
if (error >= 0)
return (error);
s = spltty();