mirror of
				git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
				synced 2025-09-18 22:14:16 +00:00 
			
		
		
		
	netlink: wake up netlink listeners sooner (v2)
This patch changes it to yield sooner at halfway instead. Still not a cure-all for listener overrun if listner is slow, but works much reliably. Signed-off-by: Stephen Hemminger <shemminger@vyatta.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
		
							parent
							
								
									b57ef81ff8
								
							
						
					
					
						commit
						2c64580046
					
				
					 1 changed files with 1 additions and 1 deletions
				
			
		|  | @ -959,7 +959,7 @@ static int netlink_broadcast_deliver(struct sock *sk, struct sk_buff *skb) | ||||||
| 		skb_set_owner_r(skb, sk); | 		skb_set_owner_r(skb, sk); | ||||||
| 		skb_queue_tail(&sk->sk_receive_queue, skb); | 		skb_queue_tail(&sk->sk_receive_queue, skb); | ||||||
| 		sk->sk_data_ready(sk, skb->len); | 		sk->sk_data_ready(sk, skb->len); | ||||||
| 		return atomic_read(&sk->sk_rmem_alloc) > sk->sk_rcvbuf; | 		return atomic_read(&sk->sk_rmem_alloc) > (sk->sk_rcvbuf >> 1); | ||||||
| 	} | 	} | ||||||
| 	return -1; | 	return -1; | ||||||
| } | } | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		
		Reference in a new issue
	
	 stephen hemminger
						stephen hemminger