Loading fs/nfs/nfs4proc.c +2 −5 Original line number Original line Diff line number Diff line Loading @@ -552,13 +552,10 @@ int nfs41_setup_sequence(struct nfs4_session *session, spin_lock(&tbl->slot_tbl_lock); spin_lock(&tbl->slot_tbl_lock); if (test_bit(NFS4_SESSION_DRAINING, &session->session_state) && if (test_bit(NFS4_SESSION_DRAINING, &session->session_state) && !rpc_task_has_priority(task, RPC_PRIORITY_PRIVILEGED)) { !rpc_task_has_priority(task, RPC_PRIORITY_PRIVILEGED)) { /* /* The state manager will wait until the slot table is empty */ * The state manager will wait until the slot table is empty. * Schedule the reset thread */ rpc_sleep_on(&tbl->slot_tbl_waitq, task, NULL); rpc_sleep_on(&tbl->slot_tbl_waitq, task, NULL); spin_unlock(&tbl->slot_tbl_lock); spin_unlock(&tbl->slot_tbl_lock); dprintk("%s Schedule Session Reset\n", __func__); dprintk("%s session is draining\n", __func__); return -EAGAIN; return -EAGAIN; } } Loading Loading
fs/nfs/nfs4proc.c +2 −5 Original line number Original line Diff line number Diff line Loading @@ -552,13 +552,10 @@ int nfs41_setup_sequence(struct nfs4_session *session, spin_lock(&tbl->slot_tbl_lock); spin_lock(&tbl->slot_tbl_lock); if (test_bit(NFS4_SESSION_DRAINING, &session->session_state) && if (test_bit(NFS4_SESSION_DRAINING, &session->session_state) && !rpc_task_has_priority(task, RPC_PRIORITY_PRIVILEGED)) { !rpc_task_has_priority(task, RPC_PRIORITY_PRIVILEGED)) { /* /* The state manager will wait until the slot table is empty */ * The state manager will wait until the slot table is empty. * Schedule the reset thread */ rpc_sleep_on(&tbl->slot_tbl_waitq, task, NULL); rpc_sleep_on(&tbl->slot_tbl_waitq, task, NULL); spin_unlock(&tbl->slot_tbl_lock); spin_unlock(&tbl->slot_tbl_lock); dprintk("%s Schedule Session Reset\n", __func__); dprintk("%s session is draining\n", __func__); return -EAGAIN; return -EAGAIN; } } Loading