Re: [PATCH 4/5] SUNRPC: track when a client connection is routed to the local host.

2014-04-24 Thread Anna Schumaker
On 04/23/2014 07:14 PM, NeilBrown wrote: > On Wed, 23 Apr 2014 09:44:12 -0400 Anna Schumaker > wrote: > >> On 04/22/2014 10:40 PM, NeilBrown wrote: >>> If requests are being sent to the local host, then NFS will >>> need to take care to avoid deadlocks. >>> >>> So keep track when accepting a conn

Re: [PATCH 4/5] SUNRPC: track when a client connection is routed to the local host.

2014-04-23 Thread NeilBrown
On Wed, 23 Apr 2014 09:44:12 -0400 Anna Schumaker wrote: > On 04/22/2014 10:40 PM, NeilBrown wrote: > > If requests are being sent to the local host, then NFS will > > need to take care to avoid deadlocks. > > > > So keep track when accepting a connection or sending a UDP request > > and set a fl

Re: [PATCH 4/5] SUNRPC: track when a client connection is routed to the local host.

2014-04-23 Thread Anna Schumaker
On 04/22/2014 10:40 PM, NeilBrown wrote: > If requests are being sent to the local host, then NFS will > need to take care to avoid deadlocks. > > So keep track when accepting a connection or sending a UDP request > and set a flag in the svc_xprt when the peer connected to is local. > > The interfa

[PATCH 4/5] SUNRPC: track when a client connection is routed to the local host.

2014-04-22 Thread NeilBrown
If requests are being sent to the local host, then NFS will need to take care to avoid deadlocks. So keep track when accepting a connection or sending a UDP request and set a flag in the svc_xprt when the peer connected to is local. The interface rpc_is_foreign() is provided to check is a given c