aboutsummaryrefslogtreecommitdiffstats
path: root/net
diff options
context:
space:
mode:
authorStanislav Kinsbursky <skinsbursky@parallels.com>2011-12-26 07:43:49 -0500
committerTrond Myklebust <Trond.Myklebust@netapp.com>2012-01-31 18:20:25 -0500
commitd706ed1f50d3f7fae61a177183562179abe8e4bb (patch)
tree8f66aaf4276a616ac6006c3fb96b13d6b543143d /net
parentd0fe13ba9178d3bb78bbd8577bdedc00f76b7a66 (diff)
SUNPRC: cleanup RPC PipeFS pipes upcall interface
RPC pipe upcall doesn't requires only private pipe data. Thus RPC inode references in this code can be removed. Signed-off-by: Stanislav Kinsbursky <skinsbursky@parallels.com> Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
Diffstat (limited to 'net')
-rw-r--r--net/sunrpc/auth_gss/auth_gss.c3
-rw-r--r--net/sunrpc/rpc_pipe.c3
2 files changed, 2 insertions, 4 deletions
diff --git a/net/sunrpc/auth_gss/auth_gss.c b/net/sunrpc/auth_gss/auth_gss.c
index e933484e55e..4157e315158 100644
--- a/net/sunrpc/auth_gss/auth_gss.c
+++ b/net/sunrpc/auth_gss/auth_gss.c
@@ -473,8 +473,7 @@ gss_setup_upcall(struct rpc_clnt *clnt, struct gss_auth *gss_auth, struct rpc_cr
473 return gss_new; 473 return gss_new;
474 gss_msg = gss_add_msg(gss_new); 474 gss_msg = gss_add_msg(gss_new);
475 if (gss_msg == gss_new) { 475 if (gss_msg == gss_new) {
476 struct inode *inode = &gss_new->inode->vfs_inode; 476 int res = rpc_queue_upcall(gss_new->inode->pipe, &gss_new->msg);
477 int res = rpc_queue_upcall(inode, &gss_new->msg);
478 if (res) { 477 if (res) {
479 gss_unhash_msg(gss_new); 478 gss_unhash_msg(gss_new);
480 gss_msg = ERR_PTR(res); 479 gss_msg = ERR_PTR(res);
diff --git a/net/sunrpc/rpc_pipe.c b/net/sunrpc/rpc_pipe.c
index 299b1a3c3e4..4093da79d51 100644
--- a/net/sunrpc/rpc_pipe.c
+++ b/net/sunrpc/rpc_pipe.c
@@ -130,9 +130,8 @@ EXPORT_SYMBOL_GPL(rpc_pipe_generic_upcall);
130 * initialize the fields of @msg (other than @msg->list) appropriately. 130 * initialize the fields of @msg (other than @msg->list) appropriately.
131 */ 131 */
132int 132int
133rpc_queue_upcall(struct inode *inode, struct rpc_pipe_msg *msg) 133rpc_queue_upcall(struct rpc_pipe *pipe, struct rpc_pipe_msg *msg)
134{ 134{
135 struct rpc_pipe *pipe = RPC_I(inode)->pipe;
136 int res = -EPIPE; 135 int res = -EPIPE;
137 136
138 spin_lock(&pipe->lock); 137 spin_lock(&pipe->lock);