aboutsummaryrefslogtreecommitdiffstats
path: root/lib/netdev-notifier-error-inject.c
diff options
context:
space:
mode:
authorRainer Weikusat <[email protected]>2015-11-26 19:23:15 +0000
committerDavid S. Miller <[email protected]>2015-12-01 19:57:43 +0000
commit77b75f4d8cf105b599beef38724f8171e557919d (patch)
treec16747ed0980aa1f8542745a3111bc5ed09f18b1 /lib/netdev-notifier-error-inject.c
parentMerge branch 'ipmr-nl' (diff)
downloadkernel-77b75f4d8cf105b599beef38724f8171e557919d.tar.gz
kernel-77b75f4d8cf105b599beef38724f8171e557919d.zip
unix: use wq_has_sleeper in unix_dgram_recvmsg
The current unix_dgram_recvmsg does a wake up for every received datagram. This seems wasteful as only SOCK_DGRAM client sockets in an n:1 association with a server socket will ever wait because of the associated condition. The patch below changes the function such that the wake up only happens if wq_has_sleeper indicates that someone actually wants to be notified. Testing with SOCK_SEQPACKET and SOCK_DGRAM socket seems to confirm that this is an improvment. Signed-Off-By: Rainer Weikusat <[email protected]> Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'lib/netdev-notifier-error-inject.c')
0 files changed, 0 insertions, 0 deletions