diff options
author | Xin Long <lucien.xin@gmail.com> | 2016-09-13 21:04:18 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2016-09-19 05:02:32 +0300 |
commit | 2c89791eeb6f3873349c240345c1879ef6a16f63 (patch) | |
tree | 35a7c0f604a6dd7564e2017c126fdb201c1343d6 /lib | |
parent | fd9527f404d51e50f40dac0d9a69f2eff3dac33e (diff) | |
download | linux-2c89791eeb6f3873349c240345c1879ef6a16f63.tar.xz |
sctp: remove the unnecessary state check in sctp_outq_tail
Data Chunks are only sent by sctp_primitive_SEND, in which sctp checks
the asoc's state through statetable before calling sctp_outq_tail. So
there's no need to check the asoc's state again in sctp_outq_tail.
Besides, sctp_do_sm is protected by lock_sock, even if sending msg is
interrupted by timer events, the event's processes still need to acquire
lock_sock first. It means no others CMDs can be enqueue into side effect
list before CMD_SEND_MSG to change asoc->state, so it's safe to remove it.
This patch is to remove redundant asoc->state check from sctp_outq_tail.
Signed-off-by: Xin Long <lucien.xin@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'lib')
0 files changed, 0 insertions, 0 deletions