Thread (23 messages) flat view 23 messages, 3 authors, 2018-01-28

Re: [PATCH net-next 2/7] rds: hold a sock ref from rds_message to the rds_sock

From: Sowmini Varadhan <hidden>
Date: 2018-01-25 15:35:41

On (01/25/18 15:44), Willem de Bruijn wrote:
quoted
This patch manages the m_rs assignment in the rds_message with
the necessary refcount book-keeping.
You may alos be able to do the same as tcp zerocopy and
hold an sk reference on the notification skb.
We tether the notification skb to the rds socket after the 
refcount on the rds_message goes to zero, so we already have a 
ref from the sk to the notification skb, 

If we kept a refcount of all notification skb's (even the ones that
are not ready to be unpinned yet) on the sk, then we have additional
complexity trying to figure out which skb's are ready for notification
at any point, so not sure it would make things simpler..

--Sowmini
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help