All of lore.kernel.org
 help / color / mirror / Atom feed
From: Peter Staubach <staubach@redhat.com>
To: Chuck Lever <chuck.lever@oracle.com>
Cc: Trond Myklebust <Trond.Myklebust@netapp.com>, linux-nfs@vger.kernel.org
Subject: Re: [PATCH 3/8] SUNRPC: Use RPC procedure name in call_verify
Date: Wed, 21 May 2008 08:14:16 -0400	[thread overview]
Message-ID: <48341218.10009@redhat.com> (raw)
In-Reply-To: <DF95EE8C-4F20-4B4A-9967-9AD354196D4D@oracle.com>

Chuck Lever wrote:
>
> On May 20, 2008, at 5:21 PM, Trond Myklebust wrote:
>
>> On Tue, 2008-05-20 at 16:29 -0400, Chuck Lever wrote:
>>> Making debugging output a little cleaner in call_verify by 
>>> displaying the
>>> name of the RPC procedure instead of it's number.
>>>
>>> Signed-off-by: Chuck Lever <chuck.lever@oracle.com>
>>> ---
>>>
>>> net/sunrpc/clnt.c |    4 ++--
>>> 1 files changed, 2 insertions(+), 2 deletions(-)
>>>
>>>
>>> diff --git a/net/sunrpc/clnt.c b/net/sunrpc/clnt.c
>>> index adbc85c..5aa32fa 100644
>>> --- a/net/sunrpc/clnt.c
>>> +++ b/net/sunrpc/clnt.c
>>> @@ -1431,10 +1431,10 @@ call_verify(struct rpc_task *task)
>>>         error = -EPROTONOSUPPORT;
>>>         goto out_err;
>>>     case RPC_PROC_UNAVAIL:
>>> -        dprintk("RPC: %5u %s: proc %p unsupported by program %u, "
>>> +        dprintk("RPC: %5u %s: proc %s unsupported by program %u, "
>>>                 "version %u on server %s\n",
>>>                 task->tk_pid, __func__,
>>> -                task->tk_msg.rpc_proc,
>>> +                task->tk_msg.rpc_proc->p_name,
>>>                 task->tk_client->cl_prog,
>>>                 task->tk_client->cl_vers,
>>>                 task->tk_client->cl_server);
>>
>> This will cause a crash if you ever call it while somebody is calling
>> rpc_call_null. There may be other cases too.
>
> How could you ever get an RPC_PROC_UNAVAIL with a NULL RPC? 

I have seen servers which didn't implement the NULL_PROC procedure
for protocols like NFS_ACL.  Beats me why.

It would be good if the client didn't crash just because someone
got lazy in the server implementation though.

       ps

  parent reply	other threads:[~2008-05-21 12:14 UTC|newest]

Thread overview: 22+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-05-20 20:29 [PATCH 0/8] Initial set of 2.6.27 patches, take 2 Chuck Lever
     [not found] ` <20080520202108.3851.7464.stgit-ewv44WTpT0t9HhUboXbp9zCvJB+x5qRC@public.gmane.org>
2008-05-20 20:29   ` [PATCH 1/8] NFS: Update help text for CONFIG_NFS_FS Chuck Lever
2008-05-20 20:29   ` [PATCH 2/8] SUNRPC: Use RPC procedure name in call_start Chuck Lever
2008-05-20 20:29   ` [PATCH 3/8] SUNRPC: Use RPC procedure name in call_verify Chuck Lever
     [not found]     ` <20080520202941.3851.61861.stgit-ewv44WTpT0t9HhUboXbp9zCvJB+x5qRC@public.gmane.org>
2008-05-20 21:21       ` Trond Myklebust
2008-05-20 21:39         ` Chuck Lever
2008-05-20 21:56           ` Trond Myklebust
2008-05-21 12:14           ` Peter Staubach [this message]
2008-05-21 12:24             ` Talpey, Thomas
     [not found]               ` <RTPCLUEXC1-PRDQrwFN00000141-rtwIt2gI0FxT+ZUat5FNkAK/GNPrWCqfQQ4Iyu8u01E@public.gmane.org>
2008-05-21 12:38                 ` Peter Staubach
2008-05-21 15:27                   ` Robert Gordon
     [not found]                     ` <E3DF41A5-5DBA-42CE-ADE2-FAE8AC5E4722-UdXhSnd/wVw@public.gmane.org>
2008-05-21 16:02                       ` Peter Staubach
2008-05-21 16:57             ` Chuck Lever
2008-05-20 20:29   ` [PATCH 4/8] SUNRPC: Don't display the rpc_show_tasks header if there are no tasks Chuck Lever
2008-05-20 20:29   ` [PATCH 5/8] SUNRPC: Refactor rpc_show_tasks Chuck Lever
2008-05-20 20:30   ` [PATCH 6/8] SUNRPC: Display some debugging information as text rather than numbers Chuck Lever
2008-05-20 20:30   ` [PATCH 7/8] SUNRPC: Rename "call_" functions that are no longer FSM states Chuck Lever
2008-05-20 20:30   ` [PATCH 8/8] SUNRPC: Display symbolic function addresses in rpc_show_tasks Chuck Lever
     [not found]     ` <20080520203018.3851.21166.stgit-ewv44WTpT0t9HhUboXbp9zCvJB+x5qRC@public.gmane.org>
2008-05-20 21:11       ` Trond Myklebust
2008-05-20 21:37         ` Chuck Lever
2008-05-20 21:42           ` Trond Myklebust
  -- strict thread matches above, loose matches on Subject: below --
2008-05-18  2:16 [PATCH 0/8] First set of 2.6.27 patches Chuck Lever
     [not found] ` <20080518021241.8366.12464.stgit-ewv44WTpT0t9HhUboXbp9zCvJB+x5qRC@public.gmane.org>
2008-05-18  2:16   ` [PATCH 3/8] SUNRPC: Use RPC procedure name in call_verify Chuck Lever

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=48341218.10009@redhat.com \
    --to=staubach@redhat.com \
    --cc=Trond.Myklebust@netapp.com \
    --cc=chuck.lever@oracle.com \
    --cc=linux-nfs@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.