aboutsummaryrefslogtreecommitdiffstats
path: root/fs/nfs
diff options
context:
space:
mode:
authorPeng Tao <bergwolf@gmail.com>2012-01-12 10:18:44 -0500
committerTrond Myklebust <Trond.Myklebust@netapp.com>2012-01-12 16:52:10 -0500
commitc0411a94a8f318379464e29dd81db806249dbca6 (patch)
tree3a466db09ab911ab68e4b1aeed4d6981aa0642c3 /fs/nfs
parent72c508879979522de347bcec706507e00d7c443d (diff)
pnfsblock: remove rpc_call_ops from struct parallel_io
block layout can just make use of generic read/write_done. Signed-off-by: Peng Tao <peng_tao@emc.com> Signed-off-by: Benny Halevy <bhalevy@tonian.com> Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
Diffstat (limited to 'fs/nfs')
-rw-r--r--fs/nfs/blocklayout/blocklayout.c13
1 files changed, 0 insertions, 13 deletions
diff --git a/fs/nfs/blocklayout/blocklayout.c b/fs/nfs/blocklayout/blocklayout.c
index 234273621854..9215c6644a3a 100644
--- a/fs/nfs/blocklayout/blocklayout.c
+++ b/fs/nfs/blocklayout/blocklayout.c
@@ -90,7 +90,6 @@ static int is_writable(struct pnfs_block_extent *be, sector_t isect)
90 */ 90 */
91struct parallel_io { 91struct parallel_io {
92 struct kref refcnt; 92 struct kref refcnt;
93 struct rpc_call_ops call_ops;
94 void (*pnfs_callback) (void *data); 93 void (*pnfs_callback) (void *data);
95 void *data; 94 void *data;
96}; 95};
@@ -226,14 +225,6 @@ bl_end_par_io_read(void *data)
226 schedule_work(&rdata->task.u.tk_work); 225 schedule_work(&rdata->task.u.tk_work);
227} 226}
228 227
229/* We don't want normal .rpc_call_done callback used, so we replace it
230 * with this stub.
231 */
232static void bl_rpc_do_nothing(struct rpc_task *task, void *calldata)
233{
234 return;
235}
236
237static enum pnfs_try_status 228static enum pnfs_try_status
238bl_read_pagelist(struct nfs_read_data *rdata) 229bl_read_pagelist(struct nfs_read_data *rdata)
239{ 230{
@@ -253,8 +244,6 @@ bl_read_pagelist(struct nfs_read_data *rdata)
253 par = alloc_parallel(rdata); 244 par = alloc_parallel(rdata);
254 if (!par) 245 if (!par)
255 goto use_mds; 246 goto use_mds;
256 par->call_ops = *rdata->mds_ops;
257 par->call_ops.rpc_call_done = bl_rpc_do_nothing;
258 par->pnfs_callback = bl_end_par_io_read; 247 par->pnfs_callback = bl_end_par_io_read;
259 /* At this point, we can no longer jump to use_mds */ 248 /* At this point, we can no longer jump to use_mds */
260 249
@@ -564,8 +553,6 @@ bl_write_pagelist(struct nfs_write_data *wdata, int sync)
564 par = alloc_parallel(wdata); 553 par = alloc_parallel(wdata);
565 if (!par) 554 if (!par)
566 return PNFS_NOT_ATTEMPTED; 555 return PNFS_NOT_ATTEMPTED;
567 par->call_ops = *wdata->mds_ops;
568 par->call_ops.rpc_call_done = bl_rpc_do_nothing;
569 par->pnfs_callback = bl_end_par_io_write; 556 par->pnfs_callback = bl_end_par_io_write;
570 /* At this point, have to be more careful with error handling */ 557 /* At this point, have to be more careful with error handling */
571 558