All of lore.kernel.org
 help / color / mirror / Atom feed
* [RFC, PATCH 9/15] knfsd: add RDMA debug class to rpc_debug bitfield
@ 2007-05-18 17:45 Tom Tucker
  2007-05-18 18:52 ` Chuck Lever
  2007-05-21  3:19 ` Greg Banks
  0 siblings, 2 replies; 10+ messages in thread
From: Tom Tucker @ 2007-05-18 17:45 UTC (permalink / raw)
  To: Linux NFS Mailing List; +Cc: Neil Brown, Tom Talpey, Peter Leckie, Greg Banks


Add a bit to the rpc_debug bit field for RDMA transport
debug messages and sysctl definitions for configuration
and statistics files in /proc/sys/sunrpc/svc_rdma.

Signed-off-by: Tom Tucker <tom@opengridcomputing.com>
---

 include/linux/sunrpc/debug.h |   15 +++++++++++++++
 1 files changed, 15 insertions(+), 0 deletions(-)

diff --git a/include/linux/sunrpc/debug.h b/include/linux/sunrpc/debug.h
index fc3a5dd..9bf7381 100644
--- a/include/linux/sunrpc/debug.h
+++ b/include/linux/sunrpc/debug.h
@@ -24,6 +24,7 @@ #define RPCDBG_SVCSOCK		0x0100
 #define RPCDBG_SVCDSP		0x0200
 #define RPCDBG_MISC		0x0400
 #define RPCDBG_CACHE		0x0800
+#define RPCDBG_RDMA		0x1000
 #define RPCDBG_ALL		0x7fff
 
 #ifdef __KERNEL__
@@ -93,6 +94,20 @@ enum {
 	CTL_RDMA_MAXINLINEWRITE,
 	CTL_RDMA_WRITEPADDING,
 	CTL_RDMA_MEMREG,
+	CTL_SVCRDMA,
+	CTL_RDMA_MAX_REQUESTS,
+	CTL_RDMA_MAX_REQ_SIZE,
+	CTL_RDMA_ORD,
+	CTL_RDMA_READ_THROTTLE,
+	CTL_RDMA_STAT_RECV,
+	CTL_RDMA_STAT_READ,
+	CTL_RDMA_STAT_WRITE,
+	CTL_RDMA_STAT_SQ_STARVE,
+	CTL_RDMA_STAT_RQ_STARVE,
+	CTL_RDMA_STAT_RQ_POLL,
+	CTL_RDMA_STAT_RQ_PROD,
+	CTL_RDMA_STAT_SQ_POLL,
+	CTL_RDMA_STAT_SQ_PROD
 };
 
 #endif /* _LINUX_SUNRPC_DEBUG_H_ */


-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
NFS maillist  -  NFS@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nfs

^ permalink raw reply related	[flat|nested] 10+ messages in thread

* Re: [RFC, PATCH 9/15] knfsd: add RDMA debug class to rpc_debug bitfield
  2007-05-18 17:45 [RFC, PATCH 9/15] knfsd: add RDMA debug class to rpc_debug bitfield Tom Tucker
@ 2007-05-18 18:52 ` Chuck Lever
  2007-05-18 18:57   ` Tom Tucker
  2007-05-21  3:19 ` Greg Banks
  1 sibling, 1 reply; 10+ messages in thread
From: Chuck Lever @ 2007-05-18 18:52 UTC (permalink / raw)
  To: Tom Tucker
  Cc: Neil Brown, Tom Talpey, Linux NFS Mailing List, Peter Leckie,
	Greg Banks

[-- Attachment #1: Type: text/plain, Size: 1889 bytes --]

Hi Tom-

On the client side, I added a generic debug flag for transports, not a 
specific flag for sockets.  Would you consider doing the same here?

Tom Tucker wrote:
> Add a bit to the rpc_debug bit field for RDMA transport
> debug messages and sysctl definitions for configuration
> and statistics files in /proc/sys/sunrpc/svc_rdma.
> 
> Signed-off-by: Tom Tucker <tom@opengridcomputing.com>
> ---
> 
>  include/linux/sunrpc/debug.h |   15 +++++++++++++++
>  1 files changed, 15 insertions(+), 0 deletions(-)
> 
> diff --git a/include/linux/sunrpc/debug.h b/include/linux/sunrpc/debug.h
> index fc3a5dd..9bf7381 100644
> --- a/include/linux/sunrpc/debug.h
> +++ b/include/linux/sunrpc/debug.h
> @@ -24,6 +24,7 @@ #define RPCDBG_SVCSOCK		0x0100
>  #define RPCDBG_SVCDSP		0x0200
>  #define RPCDBG_MISC		0x0400
>  #define RPCDBG_CACHE		0x0800
> +#define RPCDBG_RDMA		0x1000
>  #define RPCDBG_ALL		0x7fff
>  
>  #ifdef __KERNEL__
> @@ -93,6 +94,20 @@ enum {
>  	CTL_RDMA_MAXINLINEWRITE,
>  	CTL_RDMA_WRITEPADDING,
>  	CTL_RDMA_MEMREG,
> +	CTL_SVCRDMA,
> +	CTL_RDMA_MAX_REQUESTS,
> +	CTL_RDMA_MAX_REQ_SIZE,
> +	CTL_RDMA_ORD,
> +	CTL_RDMA_READ_THROTTLE,
> +	CTL_RDMA_STAT_RECV,
> +	CTL_RDMA_STAT_READ,
> +	CTL_RDMA_STAT_WRITE,
> +	CTL_RDMA_STAT_SQ_STARVE,
> +	CTL_RDMA_STAT_RQ_STARVE,
> +	CTL_RDMA_STAT_RQ_POLL,
> +	CTL_RDMA_STAT_RQ_PROD,
> +	CTL_RDMA_STAT_SQ_POLL,
> +	CTL_RDMA_STAT_SQ_PROD
>  };
>  
>  #endif /* _LINUX_SUNRPC_DEBUG_H_ */
> 
> 
> -------------------------------------------------------------------------
> This SF.net email is sponsored by DB2 Express
> Download DB2 Express C - the FREE version of DB2 express and take
> control of your XML. No limits. Just data. Click to get it now.
> http://sourceforge.net/powerbar/db2/
> _______________________________________________
> NFS maillist  -  NFS@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/nfs


[-- Attachment #2: chuck.lever.vcf --]
[-- Type: text/x-vcard, Size: 291 bytes --]

begin:vcard
fn:Chuck Lever
n:Lever;Chuck
org:Oracle Corporation;Corporate Architecture: Linux Projects Group
adr:;;1015 Granger Avenue;Ann Arbor;MI;48104;USA
title:Principal Member of Staff
tel;work:+1 248 614 5091
x-mozilla-html:FALSE
url:http://oss.oracle.com/~cel/
version:2.1
end:vcard


[-- Attachment #3: Type: text/plain, Size: 286 bytes --]

-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/

[-- Attachment #4: Type: text/plain, Size: 140 bytes --]

_______________________________________________
NFS maillist  -  NFS@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nfs

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: [RFC, PATCH 9/15] knfsd: add RDMA debug class to rpc_debug bitfield
  2007-05-18 18:52 ` Chuck Lever
@ 2007-05-18 18:57   ` Tom Tucker
  0 siblings, 0 replies; 10+ messages in thread
From: Tom Tucker @ 2007-05-18 18:57 UTC (permalink / raw)
  To: chuck.lever
  Cc: Neil Brown, Tom Talpey, Linux NFS Mailing List, Peter Leckie,
	Greg Banks

On Fri, 2007-05-18 at 14:52 -0400, Chuck Lever wrote:
> Hi Tom-
> 
> On the client side, I added a generic debug flag for transports, not a 
> specific flag for sockets.  Would you consider doing the same here?

Right. That's what I should do here too.

Thanks,
> 
> Tom Tucker wrote:
> > Add a bit to the rpc_debug bit field for RDMA transport
> > debug messages and sysctl definitions for configuration
> > and statistics files in /proc/sys/sunrpc/svc_rdma.
> > 
> > Signed-off-by: Tom Tucker <tom@opengridcomputing.com>
> > ---
> > 
> >  include/linux/sunrpc/debug.h |   15 +++++++++++++++
> >  1 files changed, 15 insertions(+), 0 deletions(-)
> > 
> > diff --git a/include/linux/sunrpc/debug.h b/include/linux/sunrpc/debug.h
> > index fc3a5dd..9bf7381 100644
> > --- a/include/linux/sunrpc/debug.h
> > +++ b/include/linux/sunrpc/debug.h
> > @@ -24,6 +24,7 @@ #define RPCDBG_SVCSOCK		0x0100
> >  #define RPCDBG_SVCDSP		0x0200
> >  #define RPCDBG_MISC		0x0400
> >  #define RPCDBG_CACHE		0x0800
> > +#define RPCDBG_RDMA		0x1000
> >  #define RPCDBG_ALL		0x7fff
> >  
> >  #ifdef __KERNEL__
> > @@ -93,6 +94,20 @@ enum {
> >  	CTL_RDMA_MAXINLINEWRITE,
> >  	CTL_RDMA_WRITEPADDING,
> >  	CTL_RDMA_MEMREG,
> > +	CTL_SVCRDMA,
> > +	CTL_RDMA_MAX_REQUESTS,
> > +	CTL_RDMA_MAX_REQ_SIZE,
> > +	CTL_RDMA_ORD,
> > +	CTL_RDMA_READ_THROTTLE,
> > +	CTL_RDMA_STAT_RECV,
> > +	CTL_RDMA_STAT_READ,
> > +	CTL_RDMA_STAT_WRITE,
> > +	CTL_RDMA_STAT_SQ_STARVE,
> > +	CTL_RDMA_STAT_RQ_STARVE,
> > +	CTL_RDMA_STAT_RQ_POLL,
> > +	CTL_RDMA_STAT_RQ_PROD,
> > +	CTL_RDMA_STAT_SQ_POLL,
> > +	CTL_RDMA_STAT_SQ_PROD
> >  };
> >  
> >  #endif /* _LINUX_SUNRPC_DEBUG_H_ */
> > 
> > 
> > -------------------------------------------------------------------------
> > This SF.net email is sponsored by DB2 Express
> > Download DB2 Express C - the FREE version of DB2 express and take
> > control of your XML. No limits. Just data. Click to get it now.
> > http://sourceforge.net/powerbar/db2/
> > _______________________________________________
> > NFS maillist  -  NFS@lists.sourceforge.net
> > https://lists.sourceforge.net/lists/listinfo/nfs
> 


-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
NFS maillist  -  NFS@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nfs

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: [RFC, PATCH 9/15] knfsd: add RDMA debug class to rpc_debug bitfield
  2007-05-18 17:45 [RFC, PATCH 9/15] knfsd: add RDMA debug class to rpc_debug bitfield Tom Tucker
  2007-05-18 18:52 ` Chuck Lever
@ 2007-05-21  3:19 ` Greg Banks
  2007-05-21  3:31   ` Tom Tucker
  1 sibling, 1 reply; 10+ messages in thread
From: Greg Banks @ 2007-05-21  3:19 UTC (permalink / raw)
  To: Tom Tucker; +Cc: Neil Brown, Tom Talpey, Linux NFS Mailing List, Peter Leckie

On Fri, May 18, 2007 at 12:45:45PM -0500, Tom Tucker wrote:
> 
> Add a bit to the rpc_debug bit field for RDMA transport
> debug messages and sysctl definitions for configuration
> and statistics files in /proc/sys/sunrpc/svc_rdma.
> 
> Signed-off-by: Tom Tucker <tom@opengridcomputing.com>
> ---
> 
>  include/linux/sunrpc/debug.h |   15 +++++++++++++++
>  1 files changed, 15 insertions(+), 0 deletions(-)
> 
> diff --git a/include/linux/sunrpc/debug.h b/include/linux/sunrpc/debug.h
> index fc3a5dd..9bf7381 100644
> --- a/include/linux/sunrpc/debug.h
> +++ b/include/linux/sunrpc/debug.h
> @@ -24,6 +24,7 @@ #define RPCDBG_SVCSOCK		0x0100
>  #define RPCDBG_SVCDSP		0x0200
>  #define RPCDBG_MISC		0x0400
>  #define RPCDBG_CACHE		0x0800
> +#define RPCDBG_RDMA		0x1000
>  #define RPCDBG_ALL		0x7fff

Fine.  Did you update the rpc_debug program in nfs-utils, which also
knows about these debug bits?

>  #ifdef __KERNEL__
> @@ -93,6 +94,20 @@ enum {
>  	CTL_RDMA_MAXINLINEWRITE,
>  	CTL_RDMA_WRITEPADDING,
>  	CTL_RDMA_MEMREG,
> +	CTL_SVCRDMA,
> +	CTL_RDMA_MAX_REQUESTS,
> +	CTL_RDMA_MAX_REQ_SIZE,
> +	CTL_RDMA_ORD,
> +	CTL_RDMA_READ_THROTTLE,
> +	CTL_RDMA_STAT_RECV,
> +	CTL_RDMA_STAT_READ,
> +	CTL_RDMA_STAT_WRITE,
> +	CTL_RDMA_STAT_SQ_STARVE,
> +	CTL_RDMA_STAT_RQ_STARVE,
> +	CTL_RDMA_STAT_RQ_POLL,
> +	CTL_RDMA_STAT_RQ_PROD,
> +	CTL_RDMA_STAT_SQ_POLL,
> +	CTL_RDMA_STAT_SQ_PROD
>  };
>  
>  #endif /* _LINUX_SUNRPC_DEBUG_H_ */

This is fine, but one tiny nit: you have the makings of two patches
here.  This hunk belongs with the patch that uses the new defines
and registers the sysctls.

Greg.
-- 
Greg Banks, R&D Software Engineer, SGI Australian Software Group.
Apparently, I'm Bedevere.  Which MPHG character are you?
I don't speak for SGI.

-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
NFS maillist  -  NFS@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nfs

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: [RFC, PATCH 9/15] knfsd: add RDMA debug class to rpc_debug bitfield
  2007-05-21  3:19 ` Greg Banks
@ 2007-05-21  3:31   ` Tom Tucker
  2007-05-21  4:16     ` Greg Banks
  0 siblings, 1 reply; 10+ messages in thread
From: Tom Tucker @ 2007-05-21  3:31 UTC (permalink / raw)
  To: Greg Banks
  Cc: NeilBrown, Talpey, Thomas, Linux NFS Mailing List, Peter Leckie


BTW, Chuck Lever also pointed out that we should probably have a generic
RPCDBG_XPRT debug flag instead of RPCDBG_RDMA. I think he's right. I think
this should be part of the transport patchset that you're working on. Do you
agree?

Tom

On 5/20/07 10:19 PM, "Greg Banks" <gnb@sgi.com> wrote:

> On Fri, May 18, 2007 at 12:45:45PM -0500, Tom Tucker wrote:
>> 
>> Add a bit to the rpc_debug bit field for RDMA transport
>> debug messages and sysctl definitions for configuration
>> and statistics files in /proc/sys/sunrpc/svc_rdma.
>> 
>> Signed-off-by: Tom Tucker <tom@opengridcomputing.com>
>> ---
>> 
>>  include/linux/sunrpc/debug.h |   15 +++++++++++++++
>>  1 files changed, 15 insertions(+), 0 deletions(-)
>> 
>> diff --git a/include/linux/sunrpc/debug.h b/include/linux/sunrpc/debug.h
>> index fc3a5dd..9bf7381 100644
>> --- a/include/linux/sunrpc/debug.h
>> +++ b/include/linux/sunrpc/debug.h
>> @@ -24,6 +24,7 @@ #define RPCDBG_SVCSOCK  0x0100
>>  #define RPCDBG_SVCDSP  0x0200
>>  #define RPCDBG_MISC  0x0400
>>  #define RPCDBG_CACHE  0x0800
>> +#define RPCDBG_RDMA  0x1000
>>  #define RPCDBG_ALL  0x7fff
> 
> Fine.  Did you update the rpc_debug program in nfs-utils, which also
> knows about these debug bits?
> 
>>  #ifdef __KERNEL__
>> @@ -93,6 +94,20 @@ enum {
>> CTL_RDMA_MAXINLINEWRITE,
>> CTL_RDMA_WRITEPADDING,
>> CTL_RDMA_MEMREG,
>> + CTL_SVCRDMA,
>> + CTL_RDMA_MAX_REQUESTS,
>> + CTL_RDMA_MAX_REQ_SIZE,
>> + CTL_RDMA_ORD,
>> + CTL_RDMA_READ_THROTTLE,
>> + CTL_RDMA_STAT_RECV,
>> + CTL_RDMA_STAT_READ,
>> + CTL_RDMA_STAT_WRITE,
>> + CTL_RDMA_STAT_SQ_STARVE,
>> + CTL_RDMA_STAT_RQ_STARVE,
>> + CTL_RDMA_STAT_RQ_POLL,
>> + CTL_RDMA_STAT_RQ_PROD,
>> + CTL_RDMA_STAT_SQ_POLL,
>> + CTL_RDMA_STAT_SQ_PROD
>>  };
>>  
>>  #endif /* _LINUX_SUNRPC_DEBUG_H_ */
> 
> This is fine, but one tiny nit: you have the makings of two patches
> here.  This hunk belongs with the patch that uses the new defines
> and registers the sysctls.
> 
> Greg.



-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
NFS maillist  -  NFS@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nfs

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: [RFC, PATCH 9/15] knfsd: add RDMA debug class to rpc_debug bitfield
  2007-05-21  3:31   ` Tom Tucker
@ 2007-05-21  4:16     ` Greg Banks
  2007-05-21  4:39       ` Neil Brown
  0 siblings, 1 reply; 10+ messages in thread
From: Greg Banks @ 2007-05-21  4:16 UTC (permalink / raw)
  To: Tom Tucker
  Cc: NeilBrown, Talpey, Thomas, Linux NFS Mailing List, Peter Leckie

On Sun, May 20, 2007 at 10:31:15PM -0500, Tom Tucker wrote:
> 
> BTW, Chuck Lever also pointed out that we should probably have a generic
> RPCDBG_XPRT debug flag instead of RPCDBG_RDMA.

So he did.  Serves me right for not reading all my email before
replying.

> I think he's right. I think
> this should be part of the transport patchset that you're working on. Do you
> agree?

I'm a little confused as to precisely what is suggested.

Currently we have an existing RPCDBG_SVCSOCK which enables dprintks
in both the generic transport code and in the sockets-specific code
too; this is hard to separate because all the code is intermingled in
the one file svcsock.c.

If the suggestion is to have separate bits for the sockets-specific
and the generic code, then the two painful alternatives seem to be

a) splitting the sockets and generic code into separate .c files, or

b) changing half the dprintk()s in svcsock.c to dfprintks().

I wasn't planning to do either of those anytime soon; either would
be a significant change.

I think the ideal case would be a total of 3 debug bits: one for the
generic transport code, one for the sockets transport-specific code and
one for the RDMA transport-specific code.  Getting there isn't easy.

However given that the new svc_rdma* code is large and in separate
files, giving it it's own RPCDBG_RDMA bit, as you've already done,
is easy and useful and a step in the right direction.

In any case I'm happy to do whatever is necessary in the transport
patchset,  but I'd appreciate Neil's guidance on which approach he'd
prefer before I go in with the scalpel.  Neil?

Greg.
-- 
Greg Banks, R&D Software Engineer, SGI Australian Software Group.
Apparently, I'm Bedevere.  Which MPHG character are you?
I don't speak for SGI.

-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
NFS maillist  -  NFS@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nfs

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: [RFC, PATCH 9/15] knfsd: add RDMA debug class to rpc_debug bitfield
  2007-05-21  4:16     ` Greg Banks
@ 2007-05-21  4:39       ` Neil Brown
  2007-05-21 14:29         ` Chuck Lever
  0 siblings, 1 reply; 10+ messages in thread
From: Neil Brown @ 2007-05-21  4:39 UTC (permalink / raw)
  To: Greg Banks; +Cc: Linux NFS Mailing List, Talpey,  Thomas, Peter Leckie

On Monday May 21, gnb@sgi.com wrote:
> 
> In any case I'm happy to do whatever is necessary in the transport
> patchset,  but I'd appreciate Neil's guidance on which approach he'd
> prefer before I go in with the scalpel.  Neil?

I cannot immediately see the value in having different debug bits for
the socket transport code and the RDMA transport code.  The key
question is "When would you want to see the debugging from one, but
not from the other", and I cannot see when that would be.  Almost
certainly if you are testing one transport, you will not be using the
other, so it will not contribute any noise.

So I suspect we should simply
#define RPCDBG_FACILITY	RPCDBG_SVCSOCK

in any server-RDMA specific files, and see how we go.  If we find we
need another bit later, then we will know exactly why and be able to
make an informed decisions based on that knowledge.

Ofcouse if client and server share much code, that could be awkward.
Do they?

NeilBrown

-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
NFS maillist  -  NFS@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nfs

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: [RFC, PATCH 9/15] knfsd: add RDMA debug class to rpc_debug bitfield
  2007-05-21  4:39       ` Neil Brown
@ 2007-05-21 14:29         ` Chuck Lever
  2007-05-23 15:14           ` Greg Banks
  0 siblings, 1 reply; 10+ messages in thread
From: Chuck Lever @ 2007-05-21 14:29 UTC (permalink / raw)
  To: Neil Brown
  Cc: Talpey, Thomas, Linux NFS Mailing List, Peter Leckie, Greg Banks

[-- Attachment #1: Type: text/plain, Size: 976 bytes --]

Neil Brown wrote:
> On Monday May 21, gnb@sgi.com wrote:
>> In any case I'm happy to do whatever is necessary in the transport
>> patchset,  but I'd appreciate Neil's guidance on which approach he'd
>> prefer before I go in with the scalpel.  Neil?
> 
> I cannot immediately see the value in having different debug bits for
> the socket transport code and the RDMA transport code.  The key
> question is "When would you want to see the debugging from one, but
> not from the other", and I cannot see when that would be.  Almost
> certainly if you are testing one transport, you will not be using the
> other, so it will not contribute any noise.

That's how I did it in the client transport switch.  One bit enables 
debug messages for all transports.

> So I suspect we should simply
> #define RPCDBG_FACILITY	RPCDBG_SVCSOCK

That's expedient, but I suggest you rename the flag to something less 
specific to sockets.

> in any server-RDMA specific files, and see how we go.

[-- Attachment #2: chuck.lever.vcf --]
[-- Type: text/x-vcard, Size: 291 bytes --]

begin:vcard
fn:Chuck Lever
n:Lever;Chuck
org:Oracle Corporation;Corporate Architecture: Linux Projects Group
adr:;;1015 Granger Avenue;Ann Arbor;MI;48104;USA
title:Principal Member of Staff
tel;work:+1 248 614 5091
x-mozilla-html:FALSE
url:http://oss.oracle.com/~cel/
version:2.1
end:vcard


[-- Attachment #3: Type: text/plain, Size: 286 bytes --]

-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/

[-- Attachment #4: Type: text/plain, Size: 140 bytes --]

_______________________________________________
NFS maillist  -  NFS@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nfs

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: [RFC, PATCH 9/15] knfsd: add RDMA debug class to rpc_debug bitfield
  2007-05-21 14:29         ` Chuck Lever
@ 2007-05-23 15:14           ` Greg Banks
  2007-05-23 20:27             ` Chuck Lever
  0 siblings, 1 reply; 10+ messages in thread
From: Greg Banks @ 2007-05-23 15:14 UTC (permalink / raw)
  To: Chuck Lever
  Cc: Neil Brown, Talpey, Thomas, Linux NFS Mailing List, Peter Leckie

On Mon, May 21, 2007 at 10:29:46AM -0400, Chuck Lever wrote:
> Neil Brown wrote:
> >On Monday May 21, gnb@sgi.com wrote:
> >>In any case I'm happy to do whatever is necessary in the transport
> >>patchset,  but I'd appreciate Neil's guidance on which approach he'd
> >>prefer before I go in with the scalpel.  Neil?
> >
> >I cannot immediately see the value in having different debug bits for
> >the socket transport code and the RDMA transport code.  The key
> >question is "When would you want to see the debugging from one, but
> >not from the other", and I cannot see when that would be.  Almost
> >certainly if you are testing one transport, you will not be using the
> >other, so it will not contribute any noise.
> 
> That's how I did it in the client transport switch.  One bit enables 
> debug messages for all transports.
> 
> >So I suspect we should simply
> >#define RPCDBG_FACILITY	RPCDBG_SVCSOCK
> 
> That's expedient, but I suggest you rename the flag to something less 
> specific to sockets.

Aah, I see now.  That's very easy.  How's this?



Rename RPCDBG_SVCSOCK to RPCDBG_SVCXPRT to reflect its
new more generic nature.

Signed-off-by: Greg Banks <gnb@melbourne.sgi.com>
---

 include/linux/sunrpc/debug.h |    2 +-
 net/sunrpc/svcsock.c         |    2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

Index: linux/include/linux/sunrpc/debug.h
===================================================================
--- linux.orig/include/linux/sunrpc/debug.h	2007-04-26 13:08:32.000000000 +1000
+++ linux/include/linux/sunrpc/debug.h	2007-05-24 01:09:11.427405573 +1000
@@ -20,7 +20,7 @@
 #define RPCDBG_PMAP		0x0020
 #define RPCDBG_SCHED		0x0040
 #define RPCDBG_TRANS		0x0080
-#define RPCDBG_SVCSOCK		0x0100
+#define RPCDBG_SVCXPRT		0x0100
 #define RPCDBG_SVCDSP		0x0200
 #define RPCDBG_MISC		0x0400
 #define RPCDBG_CACHE		0x0800
Index: linux/net/sunrpc/svcsock.c
===================================================================
--- linux.orig/net/sunrpc/svcsock.c	2007-05-23 22:39:53.000000000 +1000
+++ linux/net/sunrpc/svcsock.c	2007-05-24 01:09:15.574878967 +1000
@@ -73,7 +73,7 @@
  *
  */
 
-#define RPCDBG_FACILITY	RPCDBG_SVCSOCK
+#define RPCDBG_FACILITY	RPCDBG_SVCXPRT
 
 
 static struct svc_sock *svc_setup_socket(struct svc_serv *, struct socket *,

Greg.
-- 
Greg Banks, R&D Software Engineer, SGI Australian Software Group.
Apparently, I'm Bedevere.  Which MPHG character are you?
I don't speak for SGI.

-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
NFS maillist  -  NFS@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nfs

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: [RFC, PATCH 9/15] knfsd: add RDMA debug class to rpc_debug bitfield
  2007-05-23 15:14           ` Greg Banks
@ 2007-05-23 20:27             ` Chuck Lever
  0 siblings, 0 replies; 10+ messages in thread
From: Chuck Lever @ 2007-05-23 20:27 UTC (permalink / raw)
  To: Greg Banks
  Cc: Neil Brown, Talpey, Thomas, Linux NFS Mailing List, Peter Leckie

[-- Attachment #1: Type: text/plain, Size: 2434 bytes --]

Yes, that's basically it.

Greg Banks wrote:
> On Mon, May 21, 2007 at 10:29:46AM -0400, Chuck Lever wrote:
>> Neil Brown wrote:
>>> On Monday May 21, gnb@sgi.com wrote:
>>>> In any case I'm happy to do whatever is necessary in the transport
>>>> patchset,  but I'd appreciate Neil's guidance on which approach he'd
>>>> prefer before I go in with the scalpel.  Neil?
>>> I cannot immediately see the value in having different debug bits for
>>> the socket transport code and the RDMA transport code.  The key
>>> question is "When would you want to see the debugging from one, but
>>> not from the other", and I cannot see when that would be.  Almost
>>> certainly if you are testing one transport, you will not be using the
>>> other, so it will not contribute any noise.
>> That's how I did it in the client transport switch.  One bit enables 
>> debug messages for all transports.
>>
>>> So I suspect we should simply
>>> #define RPCDBG_FACILITY	RPCDBG_SVCSOCK
>> That's expedient, but I suggest you rename the flag to something less 
>> specific to sockets.
> 
> Aah, I see now.  That's very easy.  How's this?
> 
> 
> 
> Rename RPCDBG_SVCSOCK to RPCDBG_SVCXPRT to reflect its
> new more generic nature.
> 
> Signed-off-by: Greg Banks <gnb@melbourne.sgi.com>
> ---
> 
>  include/linux/sunrpc/debug.h |    2 +-
>  net/sunrpc/svcsock.c         |    2 +-
>  2 files changed, 2 insertions(+), 2 deletions(-)
> 
> Index: linux/include/linux/sunrpc/debug.h
> ===================================================================
> --- linux.orig/include/linux/sunrpc/debug.h	2007-04-26 13:08:32.000000000 +1000
> +++ linux/include/linux/sunrpc/debug.h	2007-05-24 01:09:11.427405573 +1000
> @@ -20,7 +20,7 @@
>  #define RPCDBG_PMAP		0x0020
>  #define RPCDBG_SCHED		0x0040
>  #define RPCDBG_TRANS		0x0080
> -#define RPCDBG_SVCSOCK		0x0100
> +#define RPCDBG_SVCXPRT		0x0100
>  #define RPCDBG_SVCDSP		0x0200
>  #define RPCDBG_MISC		0x0400
>  #define RPCDBG_CACHE		0x0800
> Index: linux/net/sunrpc/svcsock.c
> ===================================================================
> --- linux.orig/net/sunrpc/svcsock.c	2007-05-23 22:39:53.000000000 +1000
> +++ linux/net/sunrpc/svcsock.c	2007-05-24 01:09:15.574878967 +1000
> @@ -73,7 +73,7 @@
>   *
>   */
>  
> -#define RPCDBG_FACILITY	RPCDBG_SVCSOCK
> +#define RPCDBG_FACILITY	RPCDBG_SVCXPRT
>  
>  
>  static struct svc_sock *svc_setup_socket(struct svc_serv *, struct socket *,
> 
> Greg.


[-- Attachment #2: chuck.lever.vcf --]
[-- Type: text/x-vcard, Size: 291 bytes --]

begin:vcard
fn:Chuck Lever
n:Lever;Chuck
org:Oracle Corporation;Corporate Architecture: Linux Projects Group
adr:;;1015 Granger Avenue;Ann Arbor;MI;48104;USA
title:Principal Member of Staff
tel;work:+1 248 614 5091
x-mozilla-html:FALSE
url:http://oss.oracle.com/~cel/
version:2.1
end:vcard


[-- Attachment #3: Type: text/plain, Size: 286 bytes --]

-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/

[-- Attachment #4: Type: text/plain, Size: 140 bytes --]

_______________________________________________
NFS maillist  -  NFS@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nfs

^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2007-05-23 20:29 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-05-18 17:45 [RFC, PATCH 9/15] knfsd: add RDMA debug class to rpc_debug bitfield Tom Tucker
2007-05-18 18:52 ` Chuck Lever
2007-05-18 18:57   ` Tom Tucker
2007-05-21  3:19 ` Greg Banks
2007-05-21  3:31   ` Tom Tucker
2007-05-21  4:16     ` Greg Banks
2007-05-21  4:39       ` Neil Brown
2007-05-21 14:29         ` Chuck Lever
2007-05-23 15:14           ` Greg Banks
2007-05-23 20:27             ` Chuck Lever

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.