]> git.baikalelectronics.ru Git - kernel.git/commit
sctp: signal sk_data_ready earlier on data chunks reception
authorMarcelo Ricardo Leitner <marcelo.leitner@gmail.com>
Fri, 29 Apr 2016 17:17:08 +0000 (14:17 -0300)
committerDavid S. Miller <davem@davemloft.net>
Mon, 2 May 2016 01:06:10 +0000 (21:06 -0400)
commit8ec6dc6810f0e7d846374c9fc35ec0895e8f2067
treed9dac95d765c7337d9e32cbd0cc2013aba5bb74f
parent268485fc571f8d7c65e3886b29aa5dc7876b96da
sctp: signal sk_data_ready earlier on data chunks reception

Dave Miller pointed out that 2d7d2e732710 ("sctp: delay calls to
sk_data_ready() as much as possible") may insert latency specially if
the receiving application is running on another CPU and that it would be
better if we signalled as early as possible.

This patch thus basically inverts the logic on 2d7d2e732710 and signals
it as early as possible, similar to what we had before.

Fixes: 2d7d2e732710 ("sctp: delay calls to sk_data_ready() as much as possible")
Reported-by: Dave Miller <davem@davemloft.net>
Signed-off-by: Marcelo Ricardo Leitner <marcelo.leitner@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/net/sctp/structs.h
net/sctp/sm_sideeffect.c
net/sctp/ulpqueue.c