All of lore.kernel.org
 help / color / mirror / Atom feed
* Funny looking code in __rpc_purge_upcall
@ 2005-11-17  0:53 Vince Busam
  2005-11-17  3:10 ` Trond Myklebust
  0 siblings, 1 reply; 3+ messages in thread
From: Vince Busam @ 2005-11-17  0:53 UTC (permalink / raw)
  To: nfs

In __rpc_purge_upcall (net/sunrpc/rpc_pipe.c), the newer code to clean up the in_upcall 
list looks bad.  Shouldn't the first argument to list_entry() be rpci->in_upcall.next?

--- net/sunrpc/rpc_pipe.c.orig  2005-11-16 16:48:00.000000000 -0800
+++ net/sunrpc/rpc_pipe.c       2005-11-16 16:52:23.000000000 -0800
@@ -51,7 +51,7 @@ __rpc_purge_upcall(struct inode *inode,
                 rpci->ops->destroy_msg(msg);
         }
         while (!list_empty(&rpci->in_upcall)) {
-               msg = list_entry(rpci->pipe.next, struct rpc_pipe_msg, list);
+               msg = list_entry(rpci->in_upcall.next, struct rpc_pipe_msg, list);
                 list_del_init(&msg->list);
                 msg->errno = err;
                 rpci->ops->destroy_msg(msg);

Vince


-------------------------------------------------------
This SF.Net email is sponsored by the JBoss Inc.  Get Certified Today
Register for a JBoss Training Course.  Free Certification Exam
for All Training Attendees Through End of 2005. For more info visit:
http://ads.osdn.com/?ad_id=7628&alloc_id=16845&op=click
_______________________________________________
NFS maillist  -  NFS@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nfs

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

end of thread, other threads:[~2005-11-17 16:01 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-11-17  0:53 Funny looking code in __rpc_purge_upcall Vince Busam
2005-11-17  3:10 ` Trond Myklebust
2005-11-17 16:01   ` Steve Dickson

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.