Re: [PATCH] sctp: simplify sk_receive_queue locking

2016-04-15 Thread David Miller
From: Marcelo Ricardo Leitner Date: Wed, 13 Apr 2016 19:12:29 -0300 > SCTP already serializes access to rcvbuf through its sock lock: > sctp_recvmsg takes it right in the start and release at the end, while > rx path will also take the lock before doing any socket processing. On > sctp_rcv() it w

[PATCH] sctp: simplify sk_receive_queue locking

2016-04-13 Thread Marcelo Ricardo Leitner
SCTP already serializes access to rcvbuf through its sock lock: sctp_recvmsg takes it right in the start and release at the end, while rx path will also take the lock before doing any socket processing. On sctp_rcv() it will check if there is an user using the socket and, if there is, it will queue