--- Davide Libenzi <davidel@xxxxxxxxxxxxxxx> wrote:
On Wed, 19 Sep 2007, David Miller wrote:
From: Nagendra Tomar <tomer_iisc@xxxxxxxxx>You're not planning of putting the notion of a SOCK_NOSPACE bit inside a completely device-unaware interface like epoll, I hope?
Date: Wed, 19 Sep 2007 15:37:09 -0700 (PDT)
With the SOCK_NOSPACE check in tcp_check_space(), this epoll_wait call will not return, even when the incoming acks free the buffers.I already replied to your patch posting explaining that whatever is
Note that this patch assumes that the SOCK_NOSPACE check in
tcp_check_space is a trivial optimization which can be safely removed.
not setting SOCK_NOSPACE should be fixed instead.
Please address that, thanks.
Definitely not !
The point is that the "tcp write space available" wakeup does not get called if SOCK_NOSPACE bit is not set. This was
fine when the wakeup was merely a wakeup (since SOCK_NOSPACE bit indicated that someone really cared abt the wakeup). Now after the
introduction of callback'ed wakeups, we might have some work to
do inside the callback even if there is nobody interested in the wakeup
at that point of time.
In this particular case the ep_poll_callback is not getting called and
hence the socket fd is not getting added to the ready list.