sk_sndbuf and sock_wmalloc
by senthil kumar nagappan from LinuxQuestions.org on (#5S4XB)
can sk_buff allocated bytes sk->sk_wmem_alloc can be more than sk->sk_sndbuf for a socket.
In sock_wmalloc, allocating sock buf and incrementing sk_wmem_alloc, looks like it's not atomic? Or this there another global lock?
If the sock_wmalloc is reentrant, is it possible that sk_wmem_alloc can be more than the sk_sndbuf, correct?
So the sk_sndbuf is not a strict enforcement is it?
Please correct me if my understanding is wrong.
In sock_wmalloc, allocating sock buf and incrementing sk_wmem_alloc, looks like it's not atomic? Or this there another global lock?
If the sock_wmalloc is reentrant, is it possible that sk_wmem_alloc can be more than the sk_sndbuf, correct?
So the sk_sndbuf is not a strict enforcement is it?
Please correct me if my understanding is wrong.