[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-Id: <20151201.144803.593589376680817466.davem@davemloft.net>
Date: Tue, 01 Dec 2015 14:48:03 -0500 (EST)
From: David Miller <davem@...emloft.net>
To: rweikusat@...ileactivedefense.com
Cc: netdev@...r.kernel.org, linux-kernel@...r.kernel.org
Subject: Re: [PATCH] unix: use wq_has_sleeper in unix_dgram_recvmsg
From: Rainer Weikusat <rweikusat@...ileactivedefense.com>
Date: Thu, 26 Nov 2015 19:23:15 +0000
> 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 <rweikusat@...ileactivedefense.com>
Applied, thanks.
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists