diff options
Diffstat (limited to 'fs/nfs/read.c')
-rw-r--r-- | fs/nfs/read.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/fs/nfs/read.c b/fs/nfs/read.c index 3d7d9631e125..fab0d3720a03 100644 --- a/fs/nfs/read.c +++ b/fs/nfs/read.c | |||
@@ -73,7 +73,10 @@ static void nfs_readdata_free(struct nfs_read_data *rdata) | |||
73 | 73 | ||
74 | void nfs_readdata_release(void *data) | 74 | void nfs_readdata_release(void *data) |
75 | { | 75 | { |
76 | nfs_readdata_free(data); | 76 | struct nfs_read_data *rdata = data; |
77 | |||
78 | put_nfs_open_context(rdata->args.context); | ||
79 | nfs_readdata_free(rdata); | ||
77 | } | 80 | } |
78 | 81 | ||
79 | static | 82 | static |
@@ -186,7 +189,7 @@ static void nfs_read_rpcsetup(struct nfs_page *req, struct nfs_read_data *data, | |||
186 | data->args.pgbase = req->wb_pgbase + offset; | 189 | data->args.pgbase = req->wb_pgbase + offset; |
187 | data->args.pages = data->pagevec; | 190 | data->args.pages = data->pagevec; |
188 | data->args.count = count; | 191 | data->args.count = count; |
189 | data->args.context = req->wb_context; | 192 | data->args.context = get_nfs_open_context(req->wb_context); |
190 | 193 | ||
191 | data->res.fattr = &data->fattr; | 194 | data->res.fattr = &data->fattr; |
192 | data->res.count = count; | 195 | data->res.count = count; |