mbox series

[RFC,net-next,af_unix,v1,0/1] Allow delivery of SIGURG on AF_UNIX streams socket

Message ID 1605409085-20294-1-git-send-email-rao.shoaib@oracle.com (mailing list archive)
Headers show
Series Allow delivery of SIGURG on AF_UNIX streams socket | expand

Message

Shoaib Rao Nov. 15, 2020, 2:58 a.m. UTC
From: Rao Shoaib <rao.shoaib@oracle.com>

The use of AF_UNIX sockets is on the rise. We have a case where thousands
of processes connect locally to a database and issue queries that are
serviced by a pool of threads. Communication is done over AF_UNIX
sockets. Currently, there is no way for the submitter to signal the
servicing thread about an urgent condition such as abandoning
the query. This patch addresses that requirement by adding support for
MSG_OOB flag for AF_UNIX sockets. On receipt of such a flag,
the kernel sends a SIGURG to the peer.

Rao Shoaib (1):
  af_unix: Allow delivery of SIGURG on AF_UNIX streams socket

 net/unix/af_unix.c | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

Comments

Jakub Kicinski Nov. 18, 2020, 4:34 p.m. UTC | #1
On Sat, 14 Nov 2020 18:58:04 -0800 rao.shoaib@oracle.com wrote:
> From: Rao Shoaib <rao.shoaib@oracle.com>
> 
> The use of AF_UNIX sockets is on the rise. We have a case where thousands
> of processes connect locally to a database and issue queries that are
> serviced by a pool of threads. Communication is done over AF_UNIX
> sockets. Currently, there is no way for the submitter to signal the
> servicing thread about an urgent condition such as abandoning
> the query. This patch addresses that requirement by adding support for
> MSG_OOB flag for AF_UNIX sockets. On receipt of such a flag,
> the kernel sends a SIGURG to the peer.

You need to widen the CC list on this, I doubt anyone paid much
attention.