[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <ZL58WsAxz3Gj/Jlt@tissot.1015granger.net>
Date: Mon, 24 Jul 2023 09:27:54 -0400
From: Chuck Lever <chuck.lever@...cle.com>
To: David Howells <dhowells@...hat.com>
Cc: Chuck Lever <cel@...nel.org>, linux-nfs@...r.kernel.org,
netdev@...r.kernel.org
Subject: Re: [PATCH v3 2/5] SUNRPC: Send RPC message on TCP with a single
sock_sendmsg() call
On Mon, Jul 24, 2023 at 10:58:50AM +0100, David Howells wrote:
> Chuck Lever <cel@...nel.org> wrote:
>
> > + buf = page_frag_alloc(&svsk->sk_frag_cache, sizeof(marker),
> > + GFP_KERNEL);
>
> Is this SMP-safe? page_frag_alloc() does no locking.
Note that svc_tcp_sendto() takes xprt->xpt_mutex. There can be only
one thread (per svsk) running in svc_tcp_sendmsg() at a time.
--
Chuck Lever
Powered by blists - more mailing lists