aboutsummaryrefslogtreecommitdiffstats
path: root/fs/nfs/direct.c
diff options
context:
space:
mode:
authorTrond Myklebust <Trond.Myklebust@netapp.com>2007-07-14 15:40:00 -0400
committerTrond Myklebust <Trond.Myklebust@netapp.com>2008-01-30 02:05:30 -0500
commit3ff7576ddac06c3d07089e241b40826d24bbf1ac (patch)
tree7f5998434b7d0dd1f08ff7ee65c93fab4861a6d3 /fs/nfs/direct.c
parentc970aa85e71bd581726c42df843f6f129db275ac (diff)
SUNRPC: Clean up the initialisation of priority queue scheduling info.
We want the default scheduling priority (priority == 0) to remain RPC_PRIORITY_NORMAL. Also ensure that the priority wait queue scheduling is per process id instead of sometimes being per thread, and sometimes being per inode. Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
Diffstat (limited to 'fs/nfs/direct.c')
-rw-r--r--fs/nfs/direct.c10
1 files changed, 0 insertions, 10 deletions
diff --git a/fs/nfs/direct.c b/fs/nfs/direct.c
index f9f5fc13dc7d..5bcc764e501a 100644
--- a/fs/nfs/direct.c
+++ b/fs/nfs/direct.c
@@ -331,8 +331,6 @@ static ssize_t nfs_direct_read_schedule_segment(struct nfs_direct_req *dreq,
331 rpc_init_task(&data->task, &task_setup_data); 331 rpc_init_task(&data->task, &task_setup_data);
332 NFS_PROTO(inode)->read_setup(data); 332 NFS_PROTO(inode)->read_setup(data);
333 333
334 data->task.tk_cookie = (unsigned long) inode;
335
336 rpc_execute(&data->task); 334 rpc_execute(&data->task);
337 335
338 dprintk("NFS: %5u initiated direct read call " 336 dprintk("NFS: %5u initiated direct read call "
@@ -465,9 +463,6 @@ static void nfs_direct_write_reschedule(struct nfs_direct_req *dreq)
465 rpc_init_task(&data->task, &task_setup_data); 463 rpc_init_task(&data->task, &task_setup_data);
466 NFS_PROTO(inode)->write_setup(data, FLUSH_STABLE); 464 NFS_PROTO(inode)->write_setup(data, FLUSH_STABLE);
467 465
468 data->task.tk_priority = RPC_PRIORITY_NORMAL;
469 data->task.tk_cookie = (unsigned long) inode;
470
471 /* 466 /*
472 * We're called via an RPC callback, so BKL is already held. 467 * We're called via an RPC callback, so BKL is already held.
473 */ 468 */
@@ -534,8 +529,6 @@ static void nfs_direct_commit_schedule(struct nfs_direct_req *dreq)
534 rpc_init_task(&data->task, &task_setup_data); 529 rpc_init_task(&data->task, &task_setup_data);
535 NFS_PROTO(data->inode)->commit_setup(data, 0); 530 NFS_PROTO(data->inode)->commit_setup(data, 0);
536 531
537 data->task.tk_priority = RPC_PRIORITY_NORMAL;
538 data->task.tk_cookie = (unsigned long)data->inode;
539 /* Note: task.tk_ops->rpc_release will free dreq->commit_data */ 532 /* Note: task.tk_ops->rpc_release will free dreq->commit_data */
540 dreq->commit_data = NULL; 533 dreq->commit_data = NULL;
541 534
@@ -718,9 +711,6 @@ static ssize_t nfs_direct_write_schedule_segment(struct nfs_direct_req *dreq,
718 rpc_init_task(&data->task, &task_setup_data); 711 rpc_init_task(&data->task, &task_setup_data);
719 NFS_PROTO(inode)->write_setup(data, sync); 712 NFS_PROTO(inode)->write_setup(data, sync);
720 713
721 data->task.tk_priority = RPC_PRIORITY_NORMAL;
722 data->task.tk_cookie = (unsigned long) inode;
723
724 rpc_execute(&data->task); 714 rpc_execute(&data->task);
725 715
726 dprintk("NFS: %5u initiated direct write call " 716 dprintk("NFS: %5u initiated direct write call "