diff options
Diffstat (limited to 'fs/nfs/blocklayout/blocklayoutdev.c')
-rw-r--r-- | fs/nfs/blocklayout/blocklayoutdev.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/fs/nfs/blocklayout/blocklayoutdev.c b/fs/nfs/blocklayout/blocklayoutdev.c index 949b62478799..94ed978860c0 100644 --- a/fs/nfs/blocklayout/blocklayoutdev.c +++ b/fs/nfs/blocklayout/blocklayoutdev.c | |||
@@ -120,6 +120,8 @@ nfs4_blk_decode_device(struct nfs_server *server, | |||
120 | DECLARE_WAITQUEUE(wq, current); | 120 | DECLARE_WAITQUEUE(wq, current); |
121 | struct bl_dev_msg *reply = &bl_mount_reply; | 121 | struct bl_dev_msg *reply = &bl_mount_reply; |
122 | int offset, len, i, rc; | 122 | int offset, len, i, rc; |
123 | struct net *net = server->nfs_client->net; | ||
124 | struct nfs_net *nn = net_generic(net, nfs_net_id); | ||
123 | 125 | ||
124 | dprintk("%s CREATING PIPEFS MESSAGE\n", __func__); | 126 | dprintk("%s CREATING PIPEFS MESSAGE\n", __func__); |
125 | dprintk("%s: deviceid: %s, mincount: %d\n", __func__, dev->dev_id.data, | 127 | dprintk("%s: deviceid: %s, mincount: %d\n", __func__, dev->dev_id.data, |
@@ -146,7 +148,7 @@ nfs4_blk_decode_device(struct nfs_server *server, | |||
146 | 148 | ||
147 | dprintk("%s CALLING USERSPACE DAEMON\n", __func__); | 149 | dprintk("%s CALLING USERSPACE DAEMON\n", __func__); |
148 | add_wait_queue(&bl_wq, &wq); | 150 | add_wait_queue(&bl_wq, &wq); |
149 | rc = rpc_queue_upcall(bl_device_pipe, &msg); | 151 | rc = rpc_queue_upcall(nn->bl_device_pipe, &msg); |
150 | if (rc < 0) { | 152 | if (rc < 0) { |
151 | remove_wait_queue(&bl_wq, &wq); | 153 | remove_wait_queue(&bl_wq, &wq); |
152 | rv = ERR_PTR(rc); | 154 | rv = ERR_PTR(rc); |
@@ -181,6 +183,7 @@ nfs4_blk_decode_device(struct nfs_server *server, | |||
181 | 183 | ||
182 | rv->bm_mdev = bd; | 184 | rv->bm_mdev = bd; |
183 | memcpy(&rv->bm_mdevid, &dev->dev_id, sizeof(struct nfs4_deviceid)); | 185 | memcpy(&rv->bm_mdevid, &dev->dev_id, sizeof(struct nfs4_deviceid)); |
186 | rv->net = net; | ||
184 | dprintk("%s Created device %s with bd_block_size %u\n", | 187 | dprintk("%s Created device %s with bd_block_size %u\n", |
185 | __func__, | 188 | __func__, |
186 | bd->bd_disk->disk_name, | 189 | bd->bd_disk->disk_name, |