[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-Id: <20170301.125126.437185722854151936.davem@davemloft.net>
Date: Wed, 01 Mar 2017 12:51:26 -0500 (EST)
From: David Miller <davem@...emloft.net>
To: dhowells@...hat.com
Cc: netdev@...r.kernel.org, linux-afs@...ts.infradead.org,
linux-kernel@...r.kernel.org
Subject: Re: [PATCH net] rxrpc: Fix deadlock between call creation and
sendmsg/recvmsg
From: David Howells <dhowells@...hat.com>
Date: Mon, 27 Feb 2017 15:43:06 +0000
> All the routines by which rxrpc is accessed from the outside are serialised
> by means of the socket lock (sendmsg, recvmsg, bind,
> rxrpc_kernel_begin_call(), ...) and this presents a problem:
...
> Fix this by:
...
> This patch has the nice bonus that calls on the same socket are now to some
> extent parallelisable.
>
>
> Note that we might want to move rxrpc_service_prealloc() calls out from the
> socket lock and give it its own lock, so that we don't hang progress in
> other calls because we're waiting for the allocator.
>
> We probably also want to avoid calling rxrpc_notify_socket() from within
> the socket lock (rxrpc_accept_call()).
>
> Signed-off-by: David Howells <dhowells@...hat.com>
> Tested-by: Marc Dionne <marc.c.dionne@...istor.com>
Applied, thanks David.
Powered by blists - more mailing lists