Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 267212
b: refs/heads/master
c: 760383f
h: refs/heads/master
v: v3
  • Loading branch information
Peng Tao authored and Trond Myklebust committed Oct 18, 2011
1 parent 43a32f7 commit a76e72c
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: c1225158a8dad9e9d5eee8a17dbbd9c7cda05ab9
refs/heads/master: 760383f1ee4d14b0e0bdf0cddee648d9b8633429
8 changes: 6 additions & 2 deletions trunk/fs/nfs/blocklayout/blocklayout.c
Original file line number Diff line number Diff line change
Expand Up @@ -993,17 +993,20 @@ static int __init nfs4blocklayout_init(void)
mnt,
NFS_PIPE_DIRNAME, 0, &path);
if (ret)
goto out_remove;
goto out_putrpc;

bl_device_pipe = rpc_mkpipe(path.dentry, "blocklayout", NULL,
&bl_upcall_ops, 0);
path_put(&path);
if (IS_ERR(bl_device_pipe)) {
ret = PTR_ERR(bl_device_pipe);
goto out_remove;
goto out_putrpc;
}
out:
return ret;

out_putrpc:
rpc_put_mount();
out_remove:
pnfs_unregister_layoutdriver(&blocklayout_type);
return ret;
Expand All @@ -1016,6 +1019,7 @@ static void __exit nfs4blocklayout_exit(void)

pnfs_unregister_layoutdriver(&blocklayout_type);
rpc_unlink(bl_device_pipe);
rpc_put_mount();
}

MODULE_ALIAS("nfs-layouttype4-3");
Expand Down

0 comments on commit a76e72c

Please sign in to comment.