Blame rpc_pipe-remove-the-clntXX-dir-if-creating-the-pipe-fails.patch
|
|
cdff8f5 |
Bugzilla: 1037793
|
|
|
cdff8f5 |
Upstream-status: submitted for 3.14
|
|
|
cdff8f5 |
|
|
|
cdff8f5 |
In the event that we create the gssd/clntXX dir, but the pipe creation
|
|
|
cdff8f5 |
subsequently fails, then we should remove the clntXX dir before
|
|
|
cdff8f5 |
returning.
|
|
|
cdff8f5 |
|
|
|
cdff8f5 |
Signed-off-by: Jeff Layton <jlayton@redhat.com>
|
|
|
cdff8f5 |
---
|
|
|
cdff8f5 |
net/sunrpc/rpc_pipe.c | 2 ++
|
|
|
cdff8f5 |
1 file changed, 2 insertions(+)
|
|
|
cdff8f5 |
|
|
|
cdff8f5 |
diff --git a/net/sunrpc/rpc_pipe.c b/net/sunrpc/rpc_pipe.c
|
|
|
cdff8f5 |
index 5cd7ad1..0b74c61 100644
|
|
|
cdff8f5 |
--- a/net/sunrpc/rpc_pipe.c
|
|
|
cdff8f5 |
+++ b/net/sunrpc/rpc_pipe.c
|
|
|
cdff8f5 |
@@ -1313,6 +1313,8 @@ rpc_gssd_dummy_populate(struct dentry *root, struct rpc_pipe *pipe_data)
|
|
|
cdff8f5 |
}
|
|
|
cdff8f5 |
|
|
|
cdff8f5 |
pipe_dentry = rpc_mkpipe_dentry(clnt_dentry, "gssd", NULL, pipe_data);
|
|
|
cdff8f5 |
+ if (IS_ERR(pipe_dentry))
|
|
|
cdff8f5 |
+ __rpc_depopulate(gssd_dentry, gssd_dummy_clnt_dir, 0, 1);
|
|
|
cdff8f5 |
out:
|
|
|
cdff8f5 |
dput(clnt_dentry);
|
|
|
cdff8f5 |
dput(gssd_dentry);
|
|
|
cdff8f5 |
--
|
|
|
cdff8f5 |
1.8.4.2
|
|
|
cdff8f5 |
|
|
|
cdff8f5 |
--
|
|
|
cdff8f5 |
To unsubscribe from this list: send the line "unsubscribe linux-nfs" in
|
|
|
cdff8f5 |
the body of a message to majordomo@vger.kernel.org
|
|
|
cdff8f5 |
More majordomo info at http://vger.kernel.org/majordomo-info.html
|