Thread (9 messages) flat view 9 messages, 2 authors, 2021-11-25

Re: [PATCH net-next 1/3] mctp: serial: cancel tx work on ldisc close

From: Jiri Slaby <jirislaby@kernel.org>
Date: 2021-11-25 05:45:41

Hi,

On 24. 11. 21, 7:38, Jeremy Kerr wrote:
On the ldisc side: is there any case where we'd get a write wakeup
during (or after) the ->close()?
there should be no invocation of ldisc after close(). If there is, it's 
a bug as this is even documented:

  * @close: [TTY] ``void ()(struct tty_struct *tty)``
  *
  *      This function is called when the line discipline is being shutdown,
  *      either because the @tty is being closed or because the @tty is 
being
  *      changed to use a new line discipline. At the point of execution no
  *      further users will enter the ldisc code for this tty.
  *
  *      Can sleep.


Should be the same also for the "during" case.

regards,
-- 
js
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help