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)
commit0970f5b3665933f5f0d069607c78fb10bd918b62
treed9dac95d765c7337d9e32cbd0cc2013aba5bb74f
parent70e927b98bb632e0c987818835aacd6787ebe107
sctp: signal sk_data_ready earlier on data chunks reception

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

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