]> 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)
commita9c64aed950f6ed6f7fc44afea28e6876aa06a12
treed9dac95d765c7337d9e32cbd0cc2013aba5bb74f
parent1ae37b6c013dc4f847c59afbc2d9ee3307d99ad2
sctp: signal sk_data_ready earlier on data chunks reception

Dave Miller pointed out that 49dde45d774a ("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 49dde45d774a and signals
it as early as possible, similar to what we had before.

Fixes: 49dde45d774a ("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