Running PPPoE client to server, ping is ok, but iperf-ing failed.
After some debug, found that the kernel loop in the for loop of ppp_async_push endlessly
Author: Linus Torvalds <firstname.lastname@example.org>
Date: Fri Sep 18 07:05:58 2009 -0700
pty_write: don't do a tty_wakeup() when the buffers are full
commit 202c4675c55ddf6b443c7e057d2dff6b42ef71aa upstream.
Commit ac89a9174 ("pty: don't limit the writes to 'pty_space()' inside
'pty_write()'") removed the pty_space() checking, in order to let the
regular tty buffer code limit the buffering itself.
That was all good, but as a subtle side effect it meant that we'd be
doing a tty_wakeup() even in the case where the buffers were all filled
up, and didn't actually make any progress on the write.
Which sounds innocuous, but it interacts very badly with the ppp_async
code, which has an infinite loop in ppp_async_push() that tries to push
out data to the tty. When we call tty_wakeup(), that loop ends up
thinking that progress was made (see the subtle interactions between
XMIT_WAKEUP and 'tty_stuffed' for details). End result: one unhappy ppp
Fixed by noticing when tty_insert_flip_string() didn't actually do
anything, and then not doing any more processing (including, very much
not calling tty_wakeup()).
Bisected-and-tested-by: Peter Volkov <email@example.com>
Signed-off-by: Linus Torvalds <firstname.lastname@example.org>
Signed-off-by: Greg Kroah-Hartman <email@example.com>
[linux-usb-devel] quick hack to make ipaq USB serial driver work again
Paul Mackerras: [PATCH] Make ppp_async callable from hard interrupt
BUG: scheduling while atomic
Bug 13522 - BUG: scheduling while atomic
Re: [Bug #13522] BUG: scheduling while atomic
Re: BUG: scheduling while atomic
BUG: scheduling while atomic reintroduced
Linux PPP 数据收发流程