diff options
Diffstat (limited to 'fs/nfs/nfs4proc.c')
-rw-r--r-- | fs/nfs/nfs4proc.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/fs/nfs/nfs4proc.c b/fs/nfs/nfs4proc.c index 7f8b42781338..99d99a5a3f61 100644 --- a/fs/nfs/nfs4proc.c +++ b/fs/nfs/nfs4proc.c | |||
@@ -536,8 +536,6 @@ int nfs41_setup_sequence(struct nfs4_session *session, | |||
536 | } | 536 | } |
537 | spin_unlock(&tbl->slot_tbl_lock); | 537 | spin_unlock(&tbl->slot_tbl_lock); |
538 | 538 | ||
539 | rpc_task_set_priority(task, RPC_PRIORITY_NORMAL); | ||
540 | |||
541 | args->sa_slot = slot; | 539 | args->sa_slot = slot; |
542 | 540 | ||
543 | dprintk("<-- %s slotid=%d seqid=%d\n", __func__, | 541 | dprintk("<-- %s slotid=%d seqid=%d\n", __func__, |
@@ -556,8 +554,10 @@ out_success: | |||
556 | out_sleep: | 554 | out_sleep: |
557 | /* Privileged tasks are queued with top priority */ | 555 | /* Privileged tasks are queued with top priority */ |
558 | if (args->sa_privileged) | 556 | if (args->sa_privileged) |
559 | rpc_task_set_priority(task, RPC_PRIORITY_PRIVILEGED); | 557 | rpc_sleep_on_priority(&tbl->slot_tbl_waitq, task, |
560 | rpc_sleep_on(&tbl->slot_tbl_waitq, task, NULL); | 558 | NULL, RPC_PRIORITY_PRIVILEGED); |
559 | else | ||
560 | rpc_sleep_on(&tbl->slot_tbl_waitq, task, NULL); | ||
561 | spin_unlock(&tbl->slot_tbl_lock); | 561 | spin_unlock(&tbl->slot_tbl_lock); |
562 | return -EAGAIN; | 562 | return -EAGAIN; |
563 | } | 563 | } |