From: Neil Brown Date: Fri, 26 Feb 2010 22:33:40 +0000 (+1100) Subject: sunrpc: remove unnecessary svc_xprt_put X-Git-Tag: v2.6.34-rc1~27^2~6 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ab1b18f70a007ea6caeb007d269abb75b131a410;p=pandora-kernel.git sunrpc: remove unnecessary svc_xprt_put The 'struct svc_deferred_req's on the xpt_deferred queue do not own a reference to the owning xprt. This is seen in svc_revisit which is where things are added to this queue. dr->xprt is set to NULL and the reference to the xprt it put. So when this list is cleaned up in svc_delete_xprt, we mustn't put the reference. Also, replace the 'for' with a 'while' which is arguably simpler and more likely to compile efficiently. Cc: Tom Tucker Signed-off-by: NeilBrown Cc: stable@kernel.org Signed-off-by: J. Bruce Fields --- Reading git-diff-tree failed