Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1590534 > unrolled thread

Re: [PATCH net] rxrpc: Fix deadlock between call creation and sendmsg/recvmsg

Started byDavid Miller <davem@davemloft.net>
First post2017-03-01 19:00 +0100
Last post2017-03-01 19:00 +0100
Articles 1 — 1 participant

Back to article view | Back to linux.kernel

This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by below is the oldest one visible, not the original post.


Contents

  Re: [PATCH net] rxrpc: Fix deadlock between call creation and  sendmsg/recvmsg David Miller <davem@davemloft.net> - 2017-03-01 19:00 +0100

#1590534 — Re: [PATCH net] rxrpc: Fix deadlock between call creation and sendmsg/recvmsg

FromDavid Miller <davem@davemloft.net>
Date2017-03-01 19:00 +0100
SubjectRe: [PATCH net] rxrpc: Fix deadlock between call creation and sendmsg/recvmsg
Message-ID<tggHD-6rz-1@gated-at.bofh.it>
From: David Howells <dhowells@redhat.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@redhat.com>
> Tested-by: Marc Dionne <marc.c.dionne@auristor.com>

Applied, thanks David.

[toc] | [standalone]


Back to top | Article view | linux.kernel


csiph-web